HTBasic Help
×
Menu
Index
S_h1n
Spherical Hankel function of the first kind, order n.
 
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_h1n returns the value of the spherical Hankel function of the first kind and order n of x, hn(1)(x). The real component returned contains jn(x) and the imaginary component returned contains yn(x).
 
Hn(1)(x) is sometime also called the spherical Bessel function of the third kind, order n.
 
Errors                
FNS_h1n 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(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 of hn(1) using a recursion from the values of h0(1) and h1(1). The computation time increases with n and the computation accuracy decreases with n.
 
hn(1)(x)
 
 
 
Arg[hn(1)(x)], degrees