naginterfaces.library.specfun.kelvin_ber¶
- naginterfaces.library.specfun.kelvin_ber(x)[source]¶
kelvin_ber
returns a value for the Kelvin function .For full information please refer to the NAG Library document for s19aa
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/s/s19aaf.html
- Parameters
- xfloat
The argument of the function.
- Returns
- berfloat
The value of the function at .
- Raises
- NagValueError
- (errno )
On entry, .
Constraint: .
is too large for an accurate result to be returned and the function returns zero.
- Notes
kelvin_ber
evaluates an approximation to the Kelvin function .Note: , so the approximation need only consider .
The function is based on several Chebyshev expansions:
For ,
For ,
where , ,
and , , , and are expansions in the variable .
When is sufficiently close to zero, the result is set directly to .
For large , there is a danger of the result being totally inaccurate, as the error amplification factor grows in an essentially exponential manner;, therefore, the function must fail.
- References
NIST Digital Library of Mathematical Functions