Spherical Hankel function of the first kind, ordern.
Loading LOADSUB ALL FROM "BESRS.HTS"
or LOADSUB FROM "MATHLIB.HTS"
Usage INTEGER N
REAL X
COMPLEX C
C=FNS_h1n(N,X)
Description
FNS_h1nreturns the value of the spherical Hankel function of the first kind and ordernofx,hn(1)(x). The real component returned containsjn(x) and the imaginary component returned containsyn(x).
Hn(1)(x) is sometime also called thespherical Bessel function of the third kind, ordern.
Errors
FNS_h1ncauses 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(1)(0) is infinite.
See Also
S_h10, S_h11, S_h2n, S_j0, S_j1, S_y0, S_y1
Note
The algorithm used computes the value ofhn(1) using a recursion from the values ofh0(1) andh1(1). The computation time increases withnand the computation accuracy decreases withn.