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


Groups > comp.soft-sys.math.mathematica > #4925 > unrolled thread

Linear combination of Bessel functions

Started bySam Takoy <sam.takoy@yahoo.com>
First post2011-09-13 11:30 +0000
Last post2011-09-14 09:19 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Linear combination of Bessel functions Sam Takoy <sam.takoy@yahoo.com> - 2011-09-13 11:30 +0000
    Re: Linear combination of Bessel functions Simon <simonjtyler@gmail.com> - 2011-09-14 09:19 +0000

#4925 — Linear combination of Bessel functions

FromSam Takoy <sam.takoy@yahoo.com>
Date2011-09-13 11:30 +0000
SubjectLinear combination of Bessel functions
Message-ID<j4nesl$553$1@smc.vnet.net>
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

[toc] | [next] | [standalone]


#4940

FromSimon <simonjtyler@gmail.com>
Date2011-09-14 09:19 +0000
Message-ID<j4prjr$fms$1@smc.vnet.net>
In reply to#4925
CoefficientList will do this, but I prefer CoefficientRules

In[1]:= CoefficientRules[
 r^2 + Cos[r] BesselJ[0, rho r] + 3 Sin[r] BesselJ[1, rho r] + 
  Log[r] BesselJ[2, rho r], Table[BesselJ[i, rho r], {i, 0, 2}]]

Out[1]= {{1, 0, 0} -> Cos[r], {0, 1, 0} -> 3 Sin[r], 
  {0, 0, 1} -> Log[r], {0, 0, 0} -> r^2}

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web