Modified spherical Bessel function of the third kind, order n.
Loading LOADSUB ALL FROM "BESMS.HTS"
or LOADSUB FROM "MATHLIB.HTS"
Usage INTEGER N
REAL X,Y
Y=FNS_kn(N,X)
Description
FNS_knreturns the value of the modified spherical Bessel function of the third kind and ordernofx,kn(x).Kn(x) is defined for all values ofxandnexceptx= 0, but large negative values ofxor values ofxnear zero may cause the result to be larger in magnitude than MAXREAL, the largest value representable.
Errors
FNS_kncauses an HTBasic error if its arguments are not of the types listed in the usage section, above, ifxis zero, or if the result would be larger than MAXREAL.
kn(x)
See Also S_in, S_imn, S_k0, S_k1
Note
The algorithm used computes the value ofknusing a recursion from the values ofk0 andk1. The computation time increases withnand the computation accuracy decreases withn.