Home
last modified time | relevance | path

Searched refs:absx (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Modules/
D_math.c91 double absx = fabs(x); in _Py_asinh() local
96 if (absx < two_pow_m28) { /* |x| < 2**-28 */ in _Py_asinh()
99 if (absx > two_pow_p28) { /* |x| > 2**28 */ in _Py_asinh()
100 w = log(absx)+ln2; in _Py_asinh()
102 else if (absx > 2.0) { /* 2 < |x| < 2**28 */ in _Py_asinh()
103 w = log(2.0*absx + 1.0 / (sqrt(x*x + 1.0) + absx)); in _Py_asinh()
107 w = m_log1p(absx + t / (1.0 + sqrt(1.0 + t))); in _Py_asinh()
133 double absx; in _Py_atanh() local
139 absx = fabs(x); in _Py_atanh()
140 if (absx >= 1.) { /* |x| >= 1 */ in _Py_atanh()
[all …]
Dmathmodule.c233 double absx, r, y, z, sqrtpow; in m_tgamma() local
258 absx = fabs(x); in m_tgamma()
261 if (absx < 1e-20) { in m_tgamma()
271 if (absx > 200.0) { in m_tgamma()
281 y = absx + lanczos_g_minus_half; in m_tgamma()
283 if (absx > lanczos_g_minus_half) { in m_tgamma()
288 double q = y - absx; in m_tgamma()
293 z = q - absx; in m_tgamma()
297 r = -pi / sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma()
299 if (absx < 140.0) { in m_tgamma()
[all …]
/external/python/cpython2/Python/
Dpymath.c72 double absx, y; in round() local
73 absx = fabs(x); in round()
74 y = floor(absx); in round()
75 if (absx - y >= 0.5) in round()