Public Shared Function s18cc ( _ x As Double, _ <OutAttribute> ByRef ifail As Integer _ ) As Double
public: static double s18cc( double x, [OutAttribute] int% ifail )
- Type: System..::..DoubleOn entry: the argument of the function.Constraint: .
s18cc evaluates an approximation to , where is a modified Bessel function of the second kind. The scaling factor removes most of the variation in .
The method uses the same Chebyshev expansions as s18ac, which returns the unscaled value of .
Abramowitz M and Stegun I A (1972) Handbook of Mathematical Functions (3rd Edition) Dover Publications
Errors or warnings detected by the method:
- On entry, , is undefined.On failure, s18cc returns zero.
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.
This example reads values of the argument from a file, evaluates the function at each value of and prints the results.