HTBasic Help
×
Menu
Index
S_jn
Spherical Bessel function of the first kind, order n.
 
Loading        LOADSUB ALL FROM "BESMS.HTS"
or LOADSUB FROM "MATHLIB.HTS"
 
Usage                INTEGER N
REAL X,Y
Y=FNS_jn(N,X)
 
Description                
FNS_jn returns the value of the spherical Bessel function of the first kind and order n of x, jn(x). Jn(x) is defined for all values of x. For n < 0, large negative values of x or values of x near zero may cause jn(x) to be larger in magnitude than MAXREAL, the largest value representable.
 
Errors                
FNS_jn causes an HTBasic error if its arguments are not of the types listed in the USAGE section, above, or if the result would be larger than MAXREAL.
 
jn(x)
See Also        S_j0, S_j1, S_yn
 
Note
The algorithm used computes the value of jn using a recursion from the values of j0 and j1. The computation time increases with n and the computation accuracy decreases with n.