summaryrefslogtreecommitdiff
path: root/src/pkg
diff options
context:
space:
mode:
authorCharles L. Dorian <cldorian@gmail.com>2011-11-27 18:01:08 -0800
committerCharles L. Dorian <cldorian@gmail.com>2011-11-27 18:01:08 -0800
commit00670d978263ae4a79cd399b5b0e0d43426c968c (patch)
tree74b6e5ab8da764e9b672a662d5dddd41768ed413 /src/pkg
parent7a0a9527238f512de625871328c2acc62b89c2c6 (diff)
downloadgo-00670d978263ae4a79cd399b5b0e0d43426c968c.tar.gz
math: fix typo in Log1p comments
Also note the special case of -0.0. R=rsc, golang-dev, gri CC=golang-dev http://codereview.appspot.com/5435084 Committer: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/pkg')
-rw-r--r--src/pkg/math/log1p.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/math/log1p.go b/src/pkg/math/log1p.go
index c25d73b66..e8914a1d0 100644
--- a/src/pkg/math/log1p.go
+++ b/src/pkg/math/log1p.go
@@ -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