comment didn't reflect code; bug report 4.3BSD/usr.lib/86
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 5 Apr 1988 03:16:25 +0000 (19:16 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 5 Apr 1988 03:16:25 +0000 (19:16 -0800)
SCCS-vsn: lib/libm/ieee/cbrt.c 5.2

usr/src/lib/libm/ieee/cbrt.c

index d307f9c..460812a 100644 (file)
@@ -13,7 +13,7 @@
 
 #ifndef lint
 static char sccsid[] =
 
 #ifndef lint
 static char sccsid[] =
-"@(#)cbrt.c    1.1 (Berkeley) 5/23/85; 5.1 (ucb.elefunt) %G%";
+"@(#)cbrt.c    1.1 (Berkeley) 5/23/85; 5.2 (ucb.elefunt) %G%";
 #endif /* not lint */
 
 /* kahan's cube root (53 bits IEEE double precision)
 #endif /* not lint */
 
 /* kahan's cube root (53 bits IEEE double precision)
@@ -87,7 +87,7 @@ double x;
        s=t*t;          /* t*t is exact */
        r=x/s;
        w=t+t;
        s=t*t;          /* t*t is exact */
        r=x/s;
        w=t+t;
-       r=(r-t)/(w+r);  /* r-s is exact */
+       r=(r-t)/(w+r);  /* r-t is exact */
        t=t+t*r;
 
 
        t=t+t*r;