The approximation is based on several Chebyshev expansions.
4 References
Abramowitz M and Stegun I A (1972) Handbook of Mathematical Functions (3rd Edition) Dover Publications
5 Arguments
1:
x – doubleInput
On entry: the argument of the function.
6 Error Indicators and Warnings
None.
7 Accuracy
If and are the relative errors in the argument and result, respectively, then in principle . The equality may hold if is greater than the machine precision ( due to data errors etc.), but if is simply due to round-off in the machine representation, then since the factor relating to is always less than one, the accuracy will be limited by machine precision.
For , where is a machine-dependent value, to within machine precision.
8 Further Comments
None.
9 Example
The following program reads values of the argument from a file, evaluates the function at each value of and prints the results.