HTBasic Help
×
Menu
Index
S_h2n
Spherical Hankel function of the second kind, order n.
 
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_h2n returns the value of the spherical Hankel function of the second kind and order n of x, hn(2)(x). The real component returned contains jn(x) and the imaginary component returned contains -yn(x).
 
Errors                
FNS_h2n causes 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 of x is near zero, since the imaginary component of hn(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 of hn(2) using a recursion from the values of h0(2) and h1(2). The computation time increases with n and the computation accuracy decreases with n.
 
hn(2)(x)
 
 
 
Arg[hn(2)(x)], degrees