Description Usage Arguments Details Value See Also Examples
Calculates the logarithmic derivative of the Cylindrical Bessel functions.
1 | lcfa.cyl(nmax, x, code = "C", NMAX = 200)
|
nmax |
The maximum order of J_n(x) |
x |
The argument of the functions. Can be complex. |
code |
If you prefer to use native R or C language. |
NMAX |
Maximum number of iterations |
lcfa.cyl
calculates the logarithmic derivative of
Cylindrical Bessel functions D[n]=J_n'/J_n
using downward recurrence.
The system of equations is given by S_n(x)=n/x,
g[n]=J_n/J_{n+1} and
D_n=J_n'(x)/J_n(x). The system can be solved by means of
the recurrence relations of the Cylindrical Bessel functions
g[n-1]+1/g[n]=2 S[n]
g[n-1]-1/g[n]=2 D[n]
that can be rewriten
g[n]=S[n+1]+D[n+1]
1/g[n]=S[n ]-D[n ].
The logarithmic derivatives obeys the relation,
(S[n]-D[n])(S[n+1]+D[n+1])=1.
The values are calculated by downward recurrence, and the inicial values calculated by Lentz method.
An array of the logarithmic derivative of Cylindrical Bessel
functions and the ratio between two consecutive Cylindrical Bessel functions.
from 0 to nmax
at point x
1 2 3 4 5 6 7 8 9 10 | nmax<-10
x<-5
u.c<-lcfa.cyl(nmax,x,code="C")
u.r<-lcfa.cyl(nmax,x,code="R")
u<-data.frame(
# Logarithmic Derivatives
C.LogDev=u.c$Dn,R.LogDev=u.r$Dn,
# Ratio between Cylindrical Bessel functions
C.CylRat=u.c$gn,R.CylRat=u.r$gn)
print(u)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.