diff options
Diffstat (limited to 'math/s_catanh.c')
-rw-r--r-- | math/s_catanh.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/math/s_catanh.c b/math/s_catanh.c index 2ba1298..7ef9142 100644 --- a/math/s_catanh.c +++ b/math/s_catanh.c @@ -110,7 +110,11 @@ __catanh (__complex__ double x) } if (absy < DBL_EPSILON / 2.0) - den = (1.0 - absx) * (1.0 + absx); + { + den = (1.0 - absx) * (1.0 + absx); + if (den == -0.0) + den = 0.0; + } else if (absx >= 1.0) den = (1.0 - absx) * (1.0 + absx) - absy * absy; else if (absx >= 0.75 || absy >= 0.5) |