diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2012-08-19 13:53:24 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2012-08-19 13:53:24 +0000 |
commit | 82fbbc3ff6b861edc27a3e226609be1ba985c8b5 (patch) | |
tree | 62bd368ec879371055b7c77f343004e376d65550 /lib | |
parent | 94f984a7f037900cd33c85be4f6570e6d218b1ea (diff) |
Fix ranges in the method description.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libm/src/s_tanh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libm/src/s_tanh.c b/lib/libm/src/s_tanh.c index 7daaf83844b..f7d63dd69e0 100644 --- a/lib/libm/src/s_tanh.c +++ b/lib/libm/src/s_tanh.c @@ -22,14 +22,14 @@ * x -x * e + e * 1. reduce x to non-negative by tanh(-x) = -tanh(x). - * 2. 0 <= x <= 2**-55 : tanh(x) := x*(one+x) + * 2. 0 <= x < 2**-55 : tanh(x) := x*(one+x) * -t - * 2**-55 < x <= 1 : tanh(x) := -----; t = expm1(-2x) + * 2**-55 <= x < 1 : tanh(x) := -----; t = expm1(-2x) * t + 2 * 2 - * 1 <= x <= 22.0 : tanh(x) := 1- ----- ; t=expm1(2x) + * 1 <= x < 22.0 : tanh(x) := 1- ----- ; t=expm1(2x) * t + 2 - * 22.0 < x <= INF : tanh(x) := 1. + * 22.0 <= x <= INF : tanh(x) := 1. * * Special cases: * tanh(NaN) is NaN; @@ -73,7 +73,7 @@ tanh(double x) t = expm1(-two*fabs(x)); z= -t/(t+two); } - /* |x| > 22, return +-1 */ + /* |x| >= 22, return +-1 */ } else { z = one - tiny; /* raised inexact flag */ } |