Modified Bessel function of the second kind, ordern.
Loading LOADSUB ALL FROM "BESMC.HTS"
or LOADSUB FROM "MATHLIB.HTS"
Usage INTEGER N
REAL X,Y
Y=FNKn(N,X)
Description
FNKnreturns the value of the modified cylindrical Bessel function of the second kind and ordernofx,Kn(x).Kn(x) is defined for all values ofnand all positive values ofx, but values ofxclose to zero may cause the absolute value of the result to be larger than MAXREAL, the largest value representable.
Errors
FNKncauses an HTBasic error if its arguments are not of the types listed in the USAGE section, above, ifxis not positive, or if the result would be larger than MAXREAL.
Kn(x)
See Also In, K0, K1, Kn, Kne
Note
The algorithm used computes the value ofKn using a recursion from the values ofK0 andK1. The computation time increases withnand the computation accuracy decreases withn.