Spherical Hankel function of the second kind, ordern.
Loading LOADSUB ALL FROM "BESRS.HTS"
or LOADSUB FROM "MATHLIB.HTS"
Usage INTEGER N
REAL X
COMPLEX C
C=FNS_h2n(N,X)
Description
FNS_h2nreturns the value of the spherical Hankel function of the second kind and ordernofx,hn(2)(x). The real component returned containsjn(x) and the imaginary component returned contains -yn(x).
Errors
FNS_h2ncauses an HTBasic error if its arguments are not of the types shown in the USAGE section, above. It also causes an error if the value ofxis near zero, since the imaginary component ofhn(2)(0) is infinite.
See Also
S_h1n, S_h20, S_h21, S_j0, S_j1, S_y0, S_y1
Note
The algorithm used computes the value ofhn(2) using a recursion from the values ofh0(2) andh1(2). The computation time increases withnand the computation accuracy decreases withn.