Fix some comments.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 18:01:00 +0000 (19:01 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Mar 2012 23:40:21 +0000 (00:40 +0100)
* lib/expl.c: Fix an ambiguous comment.
* lib/expm1.c: Likewise.
* lib/expm1l.c: Likewise.
* lib/exp2.c: Likewise.
* lib/exp2l.c: Likewise.

ChangeLog
lib/exp2.c
lib/exp2l.c
lib/expl.c
lib/expm1.c
lib/expm1l.c

index ab2d85c795c49b733f44540d317c3af78bc7361c..039f54b99abd9bfbbf6e0509480e7ac5588497ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-03-10  Bruno Haible  <bruno@clisp.org>
+
+       Fix some comments.
+       * lib/expl.c: Fix an ambiguous comment.
+       * lib/expm1.c: Likewise.
+       * lib/expm1l.c: Likewise.
+       * lib/exp2.c: Likewise.
+       * lib/exp2l.c: Likewise.
+
 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
 
        regex: allow inclusion of <regex.h> before <limits.h>
index 21074939402753876b9149d0c82de70d0449b448..9fb8ee1e8f4351cdcce45593dea755d7f9f1f264 100644 (file)
@@ -83,9 +83,9 @@ exp2 (double x)
                    + 21844/6081075 * z^13
                    - 929569/638512875 * z^15
                    + ...
-       Since |z| <= log(2)/1024 < 0.0007, the relative error of the z^7 term
-       is < 0.0007^6 < 2^-60 <= 2^-DBL_MANT_DIG, therefore we can truncate
-       the series after the z^5 term.  */
+       Since |z| <= log(2)/1024 < 0.0007, the relative contribution of the
+       z^7 term is < 0.0007^6 < 2^-60 <= 2^-DBL_MANT_DIG, therefore we can
+       truncate the series after the z^5 term.  */
 
   {
     double nm = round (x * 256.0); /* = 256 * n + m */
index 70f6a69ef67fd2ee5b9199688fcc6a3db46037bc..c6d786ab0dad97387ab66eaa7bc35d2c3dbdb678 100644 (file)
@@ -96,9 +96,9 @@ exp2l (long double x)
                    + 21844/6081075 * z^13
                    - 929569/638512875 * z^15
                    + ...
-       Since |z| <= log(2)/1024 < 0.0007, the relative error of the z^13 term
-       is < 0.0007^12 < 2^-120 <= 2^-LDBL_MANT_DIG, therefore we can truncate
-       the series after the z^11 term.  */
+       Since |z| <= log(2)/1024 < 0.0007, the relative contribution of the
+       z^13 term is < 0.0007^12 < 2^-120 <= 2^-LDBL_MANT_DIG, therefore we
+       can truncate the series after the z^11 term.  */
 
   {
     long double nm = roundl (x * 256.0L); /* = 256 * n + m */
index a6d8567e9f859c038145578c4f8e649a6a4400d0..992937ab064b5d9db43b2a08f332af72005d41d7 100644 (file)
@@ -99,9 +99,9 @@ expl (long double x)
                    + 21844/6081075 * z^13
                    - 929569/638512875 * z^15
                    + ...
-       Since |z| <= log(2)/1024 < 0.0007, the relative error of the z^13 term
-       is < 0.0007^12 < 2^-120 <= 2^-LDBL_MANT_DIG, therefore we can truncate
-       the series after the z^11 term.
+       Since |z| <= log(2)/1024 < 0.0007, the relative contribution of the
+       z^13 term is < 0.0007^12 < 2^-120 <= 2^-LDBL_MANT_DIG, therefore we
+       can truncate the series after the z^11 term.
 
      Given the usual bounds LDBL_MAX_EXP <= 16384, LDBL_MIN_EXP >= -16381,
      LDBL_MANT_DIG <= 120, we can estimate x:  -11440 <= x <= 11357.
index 3595fa3a5288b2bf3bcf88bc2504b9963d03fb6f..8bb85130b15b79772a68b05fbc8b1b0060076384 100644 (file)
@@ -99,9 +99,9 @@ expm1 (double x)
                    + 21844/6081075 * z^13
                    - 929569/638512875 * z^15
                    + ...
-       Since |z| <= log(2)/1024 < 0.0007, the relative error of the z^7 term
-       is < 0.0007^6 < 2^-60 <= 2^-DBL_MANT_DIG, therefore we can truncate
-       the series after the z^5 term.
+       Since |z| <= log(2)/1024 < 0.0007, the relative contribution of the
+       z^7 term is < 0.0007^6 < 2^-60 <= 2^-DBL_MANT_DIG, therefore we can
+       truncate the series after the z^5 term.
 
      Given the usual bounds DBL_MAX_EXP <= 16384, DBL_MANT_DIG <= 120, we
      can estimate x:  -84 <= x <= 11357.
index 2621dcde99d1f5268401130a29e99b99935c042a..849b7aa59198ef064167910f26a7973eac8321a1 100644 (file)
@@ -109,9 +109,9 @@ expm1l (long double x)
                    + 21844/6081075 * z^13
                    - 929569/638512875 * z^15
                    + ...
-       Since |z| <= log(2)/1024 < 0.0007, the relative error of the z^13 term
-       is < 0.0007^12 < 2^-120 <= 2^-LDBL_MANT_DIG, therefore we can truncate
-       the series after the z^11 term.
+       Since |z| <= log(2)/1024 < 0.0007, the relative contribution of the
+       z^13 term is < 0.0007^12 < 2^-120 <= 2^-LDBL_MANT_DIG, therefore we
+       can truncate the series after the z^11 term.
 
      Given the usual bounds LDBL_MAX_EXP <= 16384, LDBL_MANT_DIG <= 120, we
      can estimate x:  -84 <= x <= 11357.