Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 ]
Bob Hanlon

Posts: 2,604
Registered: 1/29/05
Re: Linear combination of Bessel functions
Posted: Sep 14, 2011 4:41 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


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






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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.