HTBasic Help
×
Menu
Index

S_yn

Spherical Bessel function of the second kind and order n.
 
Loading        LOADSUB ALL FROM "BESRS.HTS"
or LOADSUB FROM "MATHLIB.HTS"
 
Usage                INTEGER N
REAL X,Y
Y=FNS_yn(N,X)
 
Description                
FNS_yn returns the value of the spherical Bessel function of the second kind and order n of x, yn(x). For n < 0, yn(x) is defined for all values of x. For n 0, yn(x) is defined for all values of x except zero, but large negative values of x or values n of x near zero may cause the result to be larger in magnitude than MAXREAL, the largest value representable.
 
Errors                
FNS_yn causes an HTBasic error if its arguments are not of the types listed in the USAGE section, above, if x is zero, if n is not in the range described above, or if the result would be larger than MAXREAL.
 
yn(x)
See Also        S_jn, S_y0, S_y1
 
Note
The algorithm used computes the value of yn using a recursion from the values of y0 and y1. The computation time increases with n and the computation accuracy decreases with n.