Lines Matching defs:exp
166 Gamma(x) involves computing pow(x+g-0.5, x-0.5) / exp(x+g-0.5). For many x
169 significantly by the pow and exp calls, especially for large x. A cheap
179 pow(x+g-0.5,x-0.5)/exp(x+g-0.5) = pow(y-e, x-0.5)/exp(y-e)
180 = pow(y, x-0.5)/exp(y) * C,
184 C = pow(1-e/y, x-0.5) * exp(e)
186 Since e is tiny, pow(1-e/y, x-0.5) ~ 1-(x-0.5)*e/y, and exp(x) ~ 1+e, so:
192 pow(x+g-0.5,x-0.5)/exp(x+g-0.5) ~ pow(y, x-0.5)/exp(y) * (1 + e*g/y),
368 r = -pi / m_sinpi(absx) / absx * exp(y) / lanczos_sum(absx);
380 r = lanczos_sum(absx) / exp(y);
433 absorbed the exp(-lanczos_g) term, and throwing out the lanczos_g
458 erf(x) = x*exp(-x*x)/sqrt(pi) * [
466 erfc(x) = x*exp(-x*x)/sqrt(pi) * [1/(0.5 + x**2 -) 0.5/(2.5 + x**2 - )
509 /* Make sure the exp call doesn't affect errno;
512 result = acc * x * exp(-x2) / sqrtpi;
548 /* Issue #8986: On some platforms, exp sets errno on underflow to zero;
551 result = p / q * x * exp(-x2) / sqrtpi;
1254 FUNC1(exp, exp, 1,
1255 "exp($module, x, /)\n--\n\n"
1262 "Return exp(x)-1.\n\n"
1264 "evaluation of exp(x)-1 for small x.")
2231 long exp;
2237 exp = PyLong_AsLongAndOverflow(i, &overflow);
2238 if (exp == -1 && PyErr_Occurred())
2241 exp = overflow < 0 ? LONG_MIN : LONG_MAX;
2253 } else if (exp > INT_MAX) {
2257 } else if (exp < INT_MIN) {
2263 r = ldexp(x, (int)exp);
3866 {"exp", math_exp, METH_O, math_exp_doc},