| Author |
Comment/Response |
Thomas Edwards
|
06/17/12 08:47am
I'm having trouble trying to define the derivative of a bessel function. I have this:
J[n_, z_] := BesselJ[n, z];
JPrime[n_, z_] := D[J[n, z], z];
But when I type this:
JPrime[0, 0.5]
I get this error:
During evaluation of In[103]:= General::ivar: 0.5` is not a valid variable. >>
How do I define the derivate correctly so I can use it in a further calculation?
Attachment: mie scattering.nb, URL: , |
|