The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Linear combination of Bessel functions
Replies: 2   Last Post: Sep 14, 2011 4:41 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 531
Registered: 2/9/09
Re: Linear combination of Bessel functions
Posted: Sep 14, 2011 4:20 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Here is one way:

getBesselCoeff[n_, expr_] :=
SeriesCoefficient[(expr /. BesselJ[n, _] :> (1/x))*x, {x, 0, 0}]];

So that

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

Out[1504]= {Cos[r],3 Sin[r],Log[r]}


On Tue, Sep 13, 2011 at 3:22 PM, Sam Takoy <> 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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.