Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4936

Re: Linear combination of Bessel functions

From Bob Hanlon <hanlonr@cox.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Linear combination of Bessel functions
Date 2011-09-14 09:17 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j4prg1$fm7$1@smc.vnet.net> (permalink)

Show all headers | View raw


expr = r^2 + Cos[r] BesselJ[0, rho r] + 3 Sin[r] BesselJ[1, rho r] + 
   Log[r] BesselJ[2, rho r];

Depending on how you want to handle r^2 term:

List @@ expr /. BesselJ[_, _] -> 1

{r^2, Cos[r], Log[r], 3*Sin[r]}

Cases[List @@ expr, c_. * BesselJ[_, _] -> c]

{Cos[r], Log[r], 3*Sin[r]}


Bob Hanlon

---- Sam Takoy <sam.takoy@yahoo.com> wrote: 

=============
Hi,

Suppose I have an expression that's a linear combination of Bessel
function. Kind of like this

r^2 + Cos[r] BesselJ[0, rho r] + 3 Sin[r] BesselJ[1, rho r] + Log[r]
BesselJ[2, rho r]

Is there a way to extract the coefficients of the linear combination?

Thanks,

Sam


Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Linear combination of Bessel functions Bob Hanlon <hanlonr@cox.net> - 2011-09-14 09:17 +0000

csiph-web