Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ erfcx_cody_tail()

double stan::math::internal::erfcx_cody_tail ( double  x)
inline

Cody (1969) third-interval rational, valid for x >= 4.

erfcx(x) = (INV_SQRT_PI + u * C(u)) / x with u = 1 / x^2 and C the Cody correction. u * C(u) is formed from the coefficients in x^2, so 1 / x^2 is never formed.

Parameters
xargument, x >= 4
Returns
scaled complementary error function

Definition at line 95 of file erfcx.hpp.