This function evaluates the modified Bessel function of the second kind of order zero.
BSK0 — Function value. (Output)
X — Argument for which the function value is desired. (Input)
Generic: BSK0 (X)
Specific: The specific interface names are S_BSK0 and D_BSK0.
Single: BSK0 (X)
Double: The double precision function name is DBSK0.
The Bessel function K0(x) is defined to be
The argument must be larger than zero, but not so large that the result, approximately equal to
underflows.
Figure 6- 4 Plot of K0(x) and K1(x)
Informational error
Type Code
2 1 The function underflows because X is too large.
In this example, K0(0.5) is computed and printed.
USE BSK0_INT
USE UMACH_INT
IMPLICIT NONE
! Declare variables
INTEGER NOUT
REAL VALUE, X
! Compute
X = 0.5
VALUE = BSK0(X)
! Print the results
CALL UMACH (2, NOUT)
WRITE (NOUT,99999) X, VALUE
99999 FORMAT (' BSK0(', F6.3, ') = ', F6.3)
END
BSK0( 0.500) = 0.924
PHONE: 713.784.3131 FAX:713.781.9260 |