Spherical Bessel function of the first kind, ordern.
Loading LOADSUB ALL FROM "BESMS.HTS"
or LOADSUB FROM "MATHLIB.HTS"
Usage INTEGER N
REAL X,Y
Y=FNS_jn(N,X)
Description
FNS_jnreturns the value of the spherical Bessel function of the first kind and ordernofx,jn(x).Jn(x) is defined for all values ofx. Forn< 0, large negative values ofxor values ofxnear zero may causejn(x) to be larger in magnitude than MAXREAL, the largest value representable.
Errors
FNS_jncauses an HTBasic error if its arguments are not of the types listed in the USAGE section, above, or if the result would be larger than MAXREAL.
jn(x)
See Also S_j0, S_j1, S_yn
Note
The algorithm used computes the value ofjnusing a recursion from the values ofj0 andj1. The computation time increases withnand the computation accuracy decreases withn.