Spherical Bessel function of the second kind and order n.
Loading LOADSUB ALL FROM "BESRS.HTS"
or LOADSUB FROM "MATHLIB.HTS"
Usage INTEGER N
REAL X,Y
Y=FNS_yn(N,X)
Description
FNS_ynreturns the value of the spherical Bessel function of the second kind and ordernofx,yn(x). Forn< 0,yn(x) is defined for all values ofx. Forn0,yn(x) is defined for all values ofxexcept zero, but large negative values ofxor valuesnofxnear zero may cause the result to be larger in magnitude than MAXREAL, the largest value representable.
Errors
FNS_yncauses an HTBasic error if its arguments are not of the types listed in theUSAGEsection, above, ifxis zero, ifnis not in the range described above, or if the result would be larger than MAXREAL.
yn(x)
See Also S_jn, S_y0, S_y1
Note
The algorithm used computes the value ofynusing a recursion from the values ofy0 andy1. The computation time increases withnand the computation accuracy decreases withn.