kelvin_keireturns a value for the Kelvin function .
For full information please refer to the NAG Library document for s19ad
The argument of the function.
The value of the function at .
- (errno )
On entry, . The function returns zero.
is too large, the result underflows and the function returns zero.
- (errno )
On entry, .
The function is undefined and returns zero.
kelvin_keievaluates an approximation to the Kelvin function .
Note: for the function is undefined, so we need only consider .
The function is based on several Chebyshev expansions:
where , and are expansions in the variable ;
where is an expansion in the variable ;
where , and and are expansions in the variable .
For , the function is undefined, and hence the function fails and returns zero.
When is sufficiently close to zero, the result is computed as
and when is even closer to zero simply as
For large , is asymptotically given by and this becomes so small that it cannot be computed without underflow and the function fails.
NIST Digital Library of Mathematical Functions