Lines Matching defs:erf
30 #pragma weak __erf = erf
35 * double erf(double x)
39 * erf(x) = --------- | exp(-t*t)dt
43 * erfc(x) = 1-erf(x)
45 * erf(-x) = -erf(x)
50 * erf(x) = x + x*R(x^2)
51 * erfc(x) = 1 - erf(x) if x in [-.84375,0.25]
56 * | R - (erf(x)-x)/x | <= 2
60 * erf(x) = (2/sqrt(pi))*(x - x^3/3 + x^5/10 - x^7/42 + ....)
64 * point of erf(x) is near 0.6174 (i.e., erf(x)=x when x is
66 * guarantee the error is less than one ulp for erf.
70 * erf(x) = sign(x) * (c + P1(s)/Q1(s))
73 * |P1/Q1 - (erf(|x|)-c)| <= 2**-59.06
75 * erf(1+s) = erf(1) + s*Poly(s)
78 * erf(1+s) - (c = (single)0.84506291151)
86 * erf(x) = 1 - erfc(x)
95 * erf(x) = sign(x)*(1.0 - erfc(x)) if x < 6, else
96 * erf(x) = sign(x)*(1.0 - tiny)
119 * erf(x) = sign(x) *(1 - tiny) (raise inexact)
124 * erf(0) = 0, erf(inf) = 1, erf(-inf) = -1,
126 * erfc/erf(NaN) is NaN
140 * Coefficients for approximation to erf on [0,0.84375]
155 * Coefficients for approximation to erf in [0.84375,1.25]
214 * Coefficients for approximation to erf on [0,0.84375]
229 * Coefficients for approximation to erf in [0.84375,1.25]
282 erf(double x) {
288 if (ix >= 0x7ff00000) { /* erf(nan)=nan */
294 return ((double) (1 - i) + one / x); /* erf(+-inf)=+-1 */