Skip to content

Commit 3db5e54

Browse files
authored
Minor typo in expm1 comment
`exp(+-inf)={inf, 0}`, so...
1 parent b252047 commit 3db5e54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/s_expm1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ expm1(double x)
147147
GET_LOW_WORD(low,x);
148148
if(((hx&0xfffff)|low)!=0)
149149
return x+x; /* NaN */
150-
else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */
150+
else return (xsb==0)? x:-1.0;/* exp(+-inf)-1={inf,-1} */
151151
}
152152
if(x > o_threshold) return huge*huge; /* overflow */
153153
}

0 commit comments

Comments
 (0)