Spherical Hankel function of the first kind, order n.
Loading LOADSUB ALL FROM "BESMC.HTS"
or LOADSUB FROM "MATHLIB.HTS"
Usage INTEGER N
REAL X,Y
Y=FNS_ihn(N,X)
Description
FNS_ihnreturns the value of the modified spherical Bessel function of the first or second kind and ordern+½ ofx,in+½(x). The function is called a function of the first kind ifnis positive and a function of the second kind ifnis negative.In+½(x) is defined for all values ofnand for all positive values ofx. Ifnis positive or zero,in+½(x) is also defined forx= 0.
Errors
FNS_ihncauses an HTBasic error if its arguments are not of the types shown in theUSAGEsection, above, or ifxis out of the range of definition explained above.
in+½(x)
See Also S_in, S_khn
Note
The algorithm used computes the value ofin+½ using a recursion from the values ofi½ andi1½. The computation time increases withnand the computation accuracy decreases withn.