![]() |
Stan Math Library
5.4.0
Automatic Differentiation
|
|
inline |
Degree-18 polynomial for |x| < 0.46875.
A Chebyshev-economized expansion of erfcx about zero, so it needs no library call and no branch on the sign of x. Its low-order coefficients reproduce the Maclaurin series of erfcx exactly (1, -2/sqrt(pi), 1, ...), which is a useful check that the fit is right.
Evaluated by Estrin's method: four independent degree-3 blocks are combined in x^4 and x^8.
| x | argument, |x| < 0.46875 |