Derivative of Bessel Function in Matlab

Status
Not open for further replies.

ozly

Newbie level 2
Joined
Mar 27, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,292
Hi zorro,
what if "z" is also a function of two variables, for example, z(x,y)? thanks...



Hi,

Exact formulas for the derivatives can be obtained symbolically. With symbolic toolbox in Matlab, the following lines give it for the first kind (put besselk for the second kind):

syms z;
syms nu;
diff(besselj(nu,z),z)

The results are:

-besselj(nu+1,z)+nu/z*besselj(nu,z)
-besselk(nu+1,z)+nu/z*besselk(nu,z)

(The same can be found in math books or tables.)
Then, use built-in besselj and besselk functions.
I hope this is what you need.
Regards

Z
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…