summaryrefslogtreecommitdiff
path: root/src/lib/math/const.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-03-05 13:31:01 -0800
committerRuss Cox <rsc@golang.org>2009-03-05 13:31:01 -0800
commit914dfea5a0dc5ea0394454f578cbaab72129144a (patch)
treee1f13f75b71d0f8d14fe489e49dde626f33a4b9d /src/lib/math/const.go
parentb5b656313a007879be8f0c1564a89c85d0fd8b31 (diff)
downloadgolang-914dfea5a0dc5ea0394454f578cbaab72129144a.tar.gz
math: doc
R=r DELTA=173 (74 added, 14 deleted, 85 changed) OCL=25753 CL=25767
Diffstat (limited to 'src/lib/math/const.go')
-rw-r--r--src/lib/math/const.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/math/const.go b/src/lib/math/const.go
index 21822f90a..259660fea 100644
--- a/src/lib/math/const.go
+++ b/src/lib/math/const.go
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// The math package provides basic constants and mathematical functions.
package math
+// Mathematical constants.
+// Reference: http://www.research.att.com/~njas/sequences/Axxxxxx
const (
- // Mathematical constants.
- // Reference: http://www.research.att.com/~njas/sequences/Axxxxxx
-
E = 2.71828182845904523536028747135266249775724709369995957496696763; // A001113
Pi = 3.14159265358979323846264338327950288419716939937510582097494459; // A000796
Phi = 1.61803398874989484820458683436563811772030917980576286213544862; // A001622
@@ -22,3 +22,5 @@ const (
Ln10 = 2.30258509299404568401799145468436420760110148862877297603332790; // A002392
Log10E = 1/Ln10;
)
+
+// BUG(rsc): The manual should define the special cases for all of these functions.