Lines Matching +full:high +full:- +full:accuracy

22  *      Here r will be represented as r = hi-lo for better 
23 * accuracy.
28 * R(r**2) = r*(exp(r)+1)/(exp(r)-1) = 2 + r*r/6 - r**4/360 + ...
31 * of this polynomial approximation is bounded by 2**-59. In
36 * | 5 | -59
37 * | 2.0+P1*z+...+P5*z - R(z) | <= 2
41 * exp(r) = 1 + -------
42 * R - r
44 * = 1 + r + ----------- (for better accuracy)
45 * 2 - R1(r)
48 * R1(r) = r - (P1*r + P2*r + ... + P5*r ).
56 * exp(-INF) is 0, and
59 * Accuracy:
66 * if x < -7.45133219101941108420e+02 then exp(x) underflow
82 halF[2] = {0.5,-0.5,},
84 u_threshold= -7.45133219101941108420e+02, /* 0xc0874910, 0xD52D3051 */
85 ln2HI[2] ={ 6.93147180369123816490e-01, /* 0x3fe62e42, 0xfee00000 */
86 -6.93147180369123816490e-01,},/* 0xbfe62e42, 0xfee00000 */
87 ln2LO[2] ={ 1.90821492927058770002e-10, /* 0x3dea39ef, 0x35793c76 */
88 -1.90821492927058770002e-10,},/* 0xbdea39ef, 0x35793c76 */
90 P1 = 1.66666666666666019037e-01, /* 0x3FC55555, 0x5555553E */
91 P2 = -2.77777777770155933842e-03, /* 0xBF66C16C, 0x16BEBD93 */
92 P3 = 6.61375632143793436117e-05, /* 0x3F11566A, 0xAF25DE2C */
93 P4 = -1.65339022054652515390e-06, /* 0xBEBBBD41, 0xC5D26BF1 */
94 P5 = 4.13813679705723846039e-08; /* 0x3E663769, 0x72BEA4D0 */
98 twom1000= 9.33263618503218878990e-302; /* 2**-1000=0x01700000,0*/
109 hx &= 0x7fffffff; /* high word of |x| */ in exp()
111 /* filter out non-finite argument */ in exp()
118 else return (xsb==0)? x:0.0; /* exp(+-inf)={inf,0} */ in exp()
127 hi = x-ln2HI[xsb]; lo=ln2LO[xsb]; k = 1-xsb-xsb; in exp()
131 hi = x - t*ln2HI[0]; /* t*ln2HI is exact here */ in exp()
134 STRICT_ASSIGN(double, x, hi - lo); in exp()
136 else if(hx < 0x3e300000) { /* when |x|<2**-28 */ in exp()
143 if(k >= -1021) in exp()
147 c = x - t*(P1+t*(P2+t*(P3+t*(P4+t*P5)))); in exp()
148 if(k==0) return one-((x*c)/(c-2.0)-x); in exp()
149 else y = one-((lo-(x*c)/(2.0-c))-hi); in exp()
150 if(k >= -1021) { in exp()