Description Usage Arguments Details See Also Examples
Array of logarithmic derivative and ratio of Ricatti-Bessel functions.
1 | lcfa.ric(nmax, x, code = "C", NMAX = 200)
|
nmax |
Maximun value of |
x |
The argument of the functions. Can be complex. |
code |
If the |
NMAX |
Maximum number of iterations on the Lentz algorithm. |
Calculate by downward recurrence the derivative of Ricatti-Bessel functions
C_n=ψ_n'(x)/ψ_n(x), where ψ_n(x)=xj_n(x), and simultaneously
the ratio ρ_n=ψ_n(x)/ψ_{n+1}(x)=j_n(x)/j_{n+1}(x), from 0 to
nmax
. The starting values are calculated by Lentz continued fraction
method.
1 2 3 4 5 6 7 8 9 10 | nmax<-10
x<-5
u.c<-lcfa.ric(nmax,x,code="C")
u.r<-lcfa.ric(nmax,x,code="R")
u<-data.frame(
# Logarithmic Derivatives
C.LogDev=u.c$Cn,R.LogDev=u.r$Cn,
# Ratio between Ricatti-Bessel functions
C.RicRat=u.c$rn,R.RicRat=u.r$rn)
print(u)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.