summaryrefslogtreecommitdiff
path: root/libm/e_atanh.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/e_atanh.c')
-rw-r--r--libm/e_atanh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libm/e_atanh.c b/libm/e_atanh.c
index 559e8f158..d199a05cc 100644
--- a/libm/e_atanh.c
+++ b/libm/e_atanh.c
@@ -5,7 +5,7 @@
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
+ * software is freely granted, provided that this notice
* is preserved.
* ====================================================
*/
@@ -21,7 +21,7 @@ static char rcsid[] = "$NetBSD: e_atanh.c,v 1.8 1995/05/10 20:44:55 jtc Exp $";
* 1 2x x
* atanh(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------)
* 2 1 - x 1 - x
- *
+ *
* For x<0.5
* atanh(x) = 0.5*log1p(2x+2x*x/(1-x))
*
@@ -61,14 +61,14 @@ static double zero = 0.0;
ix = hx&0x7fffffff;
if ((ix|((lx|(-lx))>>31))>0x3ff00000) /* |x|>1 */
return (x-x)/(x-x);
- if(ix==0x3ff00000)
+ if(ix==0x3ff00000)
return x/zero;
if(ix<0x3e300000&&(huge+x)>zero) return x; /* x<2**-28 */
SET_HIGH_WORD(x,ix);
if(ix<0x3fe00000) { /* x < 0.5 */
t = x+x;
t = 0.5*log1p(t+t*x/(one-x));
- } else
+ } else
t = 0.5*log1p((x+x)/(one-x));
if(hx>=0) return t; else return -t;
}