Skip to content

Commit

Permalink
math: fix gamma doc, link to OEIS
Browse files Browse the repository at this point in the history
Fixes #2940.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5645078
  • Loading branch information
robpike committed Feb 10, 2012
1 parent ee3e24f commit 13443cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pkg/math/const.go
Expand Up @@ -6,7 +6,7 @@
package math

// Mathematical constants.
// Reference: http://www.research.att.com/~njas/sequences/Axxxxxx
// Reference: http://oeis.org/Axxxxxx
const (
E = 2.71828182845904523536028747135266249775724709369995957496696763 // A001113
Pi = 3.14159265358979323846264338327950288419716939937510582097494459 // A000796
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/math/gamma.go
Expand Up @@ -116,7 +116,7 @@ func stirling(x float64) float64 {
// Gamma(±Inf) = ±Inf
// Gamma(NaN) = NaN
// Large values overflow to +Inf.
// Negative integer values equal ±Inf.
// Zero and negative integer arguments return ±Inf.
func Gamma(x float64) float64 {
const Euler = 0.57721566490153286060651209008240243104215933593992 // A001620
// special cases
Expand Down

0 comments on commit 13443cc

Please sign in to comment.