We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b23967 commit 9bc257aCopy full SHA for 9bc257a
src/e_exp.c
@@ -125,6 +125,11 @@ __ieee754_exp(double x) /* default IEEE double exp */
125
if(x < u_threshold) return twom1000*twom1000; /* underflow */
126
}
127
128
+ /* by pure bad luck, this implementation's error for x==1.0 is
129
+ unusually large, although still within 1 ulp. */
130
+ if (x == 1.0)
131
+ return 2.718281828459045235360;
132
+
133
/* argument reduction */
134
if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */
135
if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */
0 commit comments