]> Cypherpunks repositories - gostls13.git/commitdiff
math: make function documentation more regular
authorCharles L. Dorian <cldorian@gmail.com>
Fri, 6 Apr 2012 18:01:12 +0000 (14:01 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 6 Apr 2012 18:01:12 +0000 (14:01 -0400)
R=rsc, golang-dev
CC=golang-dev
https://golang.org/cl/5994043

src/pkg/math/acosh.go
src/pkg/math/asinh.go
src/pkg/math/atanh.go
src/pkg/math/cbrt.go
src/pkg/math/copysign.go
src/pkg/math/erf.go
src/pkg/math/gamma.go
src/pkg/math/hypot.go
src/pkg/math/logb.go
src/pkg/math/sincos.go

index c6c8645e1ae81c631d3ceed0c6f2a6cd8fd8bef8..e394008b078cb2db2bec1942b7c71e9cb5da8b1a 100644 (file)
@@ -33,7 +33,7 @@ package math
 //     acosh(NaN) is NaN without signal.
 //
 
-// Acosh(x) calculates the inverse hyperbolic cosine of x.
+// Acosh returns the inverse hyperbolic cosine of x.
 //
 // Special cases are:
 //     Acosh(+Inf) = +Inf
index 0defbb9bef26c7f4c2ffb39c76436e5b1346a169..ff2de0215f5a9e2585fbb560de3f78234ef4771c 100644 (file)
@@ -30,7 +30,7 @@ package math
 //              := sign(x)*log1p(|x| + x**2/(1 + sqrt(1+x**2)))
 //
 
-// Asinh(x) calculates the inverse hyperbolic sine of x.
+// Asinh returns the inverse hyperbolic sine of x.
 //
 // Special cases are:
 //     Asinh(±0) = ±0
index 5b5d468559bd066e658628e0db86bcdec3d3d3b4..113d5c103c03c733db433f693a6ead597615eb8f 100644 (file)
@@ -36,7 +36,7 @@ package math
 //     atanh(+-1) is +-INF with signal.
 //
 
-// Atanh(x) calculates the inverse hyperbolic tangent of x.
+// Atanh returns the inverse hyperbolic tangent of x.
 //
 // Special cases are:
 //     Atanh(1) = +Inf
index 8c43f0afbc8858f997d481741cca63fb345573a8..272e3092310995aeef1e3281b1d26590aa8c5957 100644 (file)
@@ -12,7 +12,7 @@ package math
        (http://www.jstor.org/stable/2006387?seq=9, accessed 11-Feb-2010)
 */
 
-// Cbrt returns the cube root of its argument.
+// Cbrt returns the cube root of x.
 //
 // Special cases are:
 //     Cbrt(±0) = ±0
index ee65456a1ce19a5c026d9d6a5123adca3aa038bb..719c64b9eba7961c93c3261dfade1d0e76653df8 100644 (file)
@@ -4,7 +4,7 @@
 
 package math
 
-// Copysign(x, y) returns a value with the magnitude
+// Copysign returns a value with the magnitude
 // of x and the sign of y.
 func Copysign(x, y float64) float64 {
        const sign = 1 << 63
index c6f32bdbe284087f1cc783d9dfd110706d72221b..4cd80f80c3be966c89e7bac27e2eda5c9ab9b8af 100644 (file)
@@ -179,7 +179,7 @@ const (
        sb7 = -2.24409524465858183362e+01 // 0xC03670E242712D62
 )
 
-// Erf(x) returns the error function of x.
+// Erf returns the error function of x.
 //
 // Special cases are:
 //     Erf(+Inf) = 1
@@ -256,7 +256,7 @@ func Erf(x float64) float64 {
        return 1 - r/x
 }
 
-// Erfc(x) returns the complementary error function of x.
+// Erfc returns the complementary error function of x.
 //
 // Special cases are:
 //     Erfc(+Inf) = 0
index 8b053cb85ffc92050d62ee829a220eb666d8c42a..164f54f332b13936be26575059f9b2b795c7d7a5 100644 (file)
@@ -110,7 +110,7 @@ func stirling(x float64) float64 {
        return y
 }
 
-// Gamma(x) returns the Gamma function of x.
+// Gamma returns the Gamma function of x.
 //
 // Special cases are:
 //     Gamma(+Inf) = +Inf
index df4d3eb709108fd168708c567da70ebb60528f91..3846e6d87d922125e649261681fb9c60fff9134b 100644 (file)
@@ -8,7 +8,7 @@ package math
        Hypot -- sqrt(p*p + q*q), but overflows only if the result does.
 */
 
-// Hypot computes Sqrt(p*p + q*q), taking care to avoid
+// Hypot returns Sqrt(p*p + q*q), taking care to avoid
 // unnecessary overflow and underflow.
 //
 // Special cases are:
index d32f9f1000c790d042cb586c7e7e47c7af9b7c27..f2769d4fd754457594d92ccb6530050bc1bbff2c 100644 (file)
@@ -4,7 +4,7 @@
 
 package math
 
-// Logb(x) returns the binary exponent of x.
+// Logb returns the binary exponent of x.
 //
 // Special cases are:
 //     Logb(±Inf) = +Inf
@@ -23,7 +23,7 @@ func Logb(x float64) float64 {
        return float64(ilogb(x))
 }
 
-// Ilogb(x) returns the binary exponent of x as an integer.
+// Ilogb returns the binary exponent of x as an integer.
 //
 // Special cases are:
 //     Ilogb(±Inf) = MaxInt32
index 7300429207c3863a85de340b3567017b7811e29c..718030319928a40fd503dc64e76a47d6a3cff723 100644 (file)
@@ -6,7 +6,7 @@ package math
 
 // Coefficients _sin[] and _cos[] are found in pkg/math/sin.go.
 
-// Sincos(x) returns Sin(x), Cos(x).
+// Sincos returns Sin(x), Cos(x).
 //
 // Special cases are:
 //     Sincos(±0) = ±0, 1