Home | History | Annotate | Download | only in src

Lines Matching refs:expm1

17 /* expm1(x)
29 * 2. Approximating expm1(r) by a special rational function on
55 * expm1(r) = exp(r)-1 is then computed by the following
59 * expm1(r) = r + --- + --- * [--------------------]
63 * expm1(r+c) = expm1(r) + c + expm1(r)*c
64 * ~ expm1(r) + c + r*c
66 * expm1(r+c). Now rearrange the term to avoid optimization
70 * expm1(r+c)~r - ({r*(--- * [--------------------]-c)-c} - --- )
75 * 3. Scale back to obtain expm1(x):
77 * expm1(x) = either 2^k*[expm1(r)+1] - 1
78 * = or 2^k*[expm1(r) + (1-2^-k)]
82 * (B). To achieve maximum accuracy, we compute expm1(x) by
93 * expm1(INF) is INF, expm1(NaN) is NaN;
94 * expm1(-INF) is -1, and
95 * for finite argument, only expm1(0)=0 is exact.
103 * if x > 7.09782712893383973096e+02 then expm1(x) overflow
123 /* scaled coefficients related to expm1 */
131 expm1(double x)