|
NAG[s18cdc] NAG[nag_bessel_k1_scaled] - Scaled modified Bessel function
|
|
Calling Sequence
s18cdc(x, 'fail'=fail)
nag_bessel_k1_scaled(. . .)
Parameters
|
x - float;
|
|
|
On entry: the argument of the function.
|
|
Constraint: . If x is too close to zero, there is a danger of overflow, and a failure will occur. .
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_bessel_k1_scaled (s18cdc) returns a value of the scaled modified Bessel function .
|
|
Error Indicators and Warnings
|
|
"NE_REAL_ARG_LE"
On entry, x must not be less than or equal to 0.0: .
is undefined and the function returns zero.
"NE_REAL_ARG_TOO_SMALL"
On entry, x must be greater than : . The function returns the value of the function at the smallest permitted value of the argument.
|
|
Accuracy
|
|
Relative errors in the argument are attenuated when propagated into the function value. When the accuracy of the argument is essentially limited by the machine precision, the accuracy of the function value will be similarly limited by at most a small multiple of the machine precision.
|
|
|
Examples
|
|
>
|
x := 0.4:
NAG:-s18cdc(x);
|
|
|