]> Cypherpunks repositories - gostls13.git/commitdiff
math: fix typo in Log1p comments
authorCharles L. Dorian <cldorian@gmail.com>
Mon, 28 Nov 2011 02:01:08 +0000 (18:01 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 28 Nov 2011 02:01:08 +0000 (18:01 -0800)
Also note the special case of -0.0.

R=rsc, golang-dev, gri
CC=golang-dev
https://golang.org/cl/5435084

src/pkg/math/log1p.go

index c25d73b66411d81090554adf8be6d0c281c70ebf..e8914a1d0533b79916ac95da8429e4ec4011c2bd 100644 (file)
@@ -44,7 +44,7 @@ package math
 //                      2      4      6      8      10      12      14
 //          R(z) ~ Lp1*s +Lp2*s +Lp3*s +Lp4*s +Lp5*s  +Lp6*s  +Lp7*s
 //      (the values of Lp1 to Lp7 are listed in the program)
-//      a-0.2929nd
+//      and
 //          |      2          14          |     -58.45
 //          | Lp1*s +...+Lp7*s    -  R(z) | <= 2
 //          |                             |
@@ -88,6 +88,7 @@ package math
 //
 // Special cases are:
 //     Log1p(+Inf) = +Inf
+//     Log1p(±0) = ±0
 //     Log1p(-1) = -Inf
 //     Log1p(x < -1) = NaN
 //     Log1p(NaN) = NaN