Skip to content

Commit c99ab08

Browse files
authored
Merge pull request #173 from pkofod/patch-1
Minor typo in expm1 comment
2 parents b252047 + 3db5e54 commit c99ab08

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)