Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Trying to define derivative of bessel function' topicStudent Support Forum > General > "Trying to define derivative of bessel function"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'Trying to define derivative of bessel function')
Author Date Posted
Trying to define derivative of bessel function Thomas Edwards 06/17/12 08:47am
Re: Trying to define derivative of bessel funct... jf 06/20/12 10:41am
Next Comment >Help | Reply To Topic