Commit 2a621951 authored by Robert Griesemer's avatar Robert Griesemer

math package: minor documentation fix

R=rsc
CC=golang-dev
https://golang.org/cl/424041
parent 7cd4de6a
...@@ -262,9 +262,9 @@ func Erf(x float64) float64 { ...@@ -262,9 +262,9 @@ func Erf(x float64) float64 {
// Erfc(x) returns the complementary error function of x. // Erfc(x) returns the complementary error function of x.
// //
// Special cases are: // Special cases are:
// Erf(+Inf) = 0 // Erfc(+Inf) = 0
// Erf(-Inf) = 2 // Erfc(-Inf) = 2
// Erf(NaN) = NaN // Erfc(NaN) = NaN
func Erfc(x float64) float64 { func Erfc(x float64) float64 {
const Tiny = 1.0 / (1 << 56) // 2^-56 const Tiny = 1.0 / (1 << 56) // 2^-56
// special cases // special cases
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment