Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues of tanh(x) when x=INF or -INF
We didn't check this special case. We just computed tanh(x) by sinh(x)/cosh(x). But when x=INF or -INF, the limit of tanh(x) is defined as follow: lim(tanh(x)) = 1.0, x -> INF; lim(tanh(x)) = -1.0, x -> -INF
- Loading branch information