Minor typo in expm1 comment

`exp(+-inf)={inf, 0}`, so...
This commit is contained in:
Patrick Kofod Mogensen 2017-11-30 13:19:33 +01:00 committed by GitHub
parent b2520473c2
commit 3db5e546e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ expm1(double x)
GET_LOW_WORD(low,x);
if(((hx&0xfffff)|low)!=0)
return x+x; /* NaN */
else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */
else return (xsb==0)? x:-1.0;/* exp(+-inf)-1={inf,-1} */
}
if(x > o_threshold) return huge*huge; /* overflow */
}