Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
f2734877
Commit
f2734877
authored
Apr 06, 2012
by
Charles L. Dorian
Committed by
Russ Cox
Apr 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
math: make function documentation more regular
R=rsc, golang-dev CC=golang-dev
https://golang.org/cl/5994043
parent
559c191b
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
12 additions
and
12 deletions
+12
-12
acosh.go
src/pkg/math/acosh.go
+1
-1
asinh.go
src/pkg/math/asinh.go
+1
-1
atanh.go
src/pkg/math/atanh.go
+1
-1
cbrt.go
src/pkg/math/cbrt.go
+1
-1
copysign.go
src/pkg/math/copysign.go
+1
-1
erf.go
src/pkg/math/erf.go
+2
-2
gamma.go
src/pkg/math/gamma.go
+1
-1
hypot.go
src/pkg/math/hypot.go
+1
-1
logb.go
src/pkg/math/logb.go
+2
-2
sincos.go
src/pkg/math/sincos.go
+1
-1
No files found.
src/pkg/math/acosh.go
View file @
f2734877
...
...
@@ -33,7 +33,7 @@ package math
// acosh(NaN) is NaN without signal.
//
// Acosh
(x) calculate
s the inverse hyperbolic cosine of x.
// Acosh
return
s the inverse hyperbolic cosine of x.
//
// Special cases are:
// Acosh(+Inf) = +Inf
...
...
src/pkg/math/asinh.go
View file @
f2734877
...
...
@@ -30,7 +30,7 @@ package math
// := sign(x)*log1p(|x| + x**2/(1 + sqrt(1+x**2)))
//
// Asinh
(x) calculate
s the inverse hyperbolic sine of x.
// Asinh
return
s the inverse hyperbolic sine of x.
//
// Special cases are:
// Asinh(±0) = ±0
...
...
src/pkg/math/atanh.go
View file @
f2734877
...
...
@@ -36,7 +36,7 @@ package math
// atanh(+-1) is +-INF with signal.
//
// Atanh
(x) calculate
s the inverse hyperbolic tangent of x.
// Atanh
return
s the inverse hyperbolic tangent of x.
//
// Special cases are:
// Atanh(1) = +Inf
...
...
src/pkg/math/cbrt.go
View file @
f2734877
...
...
@@ -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
...
...
src/pkg/math/copysign.go
View file @
f2734877
...
...
@@ -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
...
...
src/pkg/math/erf.go
View file @
f2734877
...
...
@@ -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
...
...
src/pkg/math/gamma.go
View file @
f2734877
...
...
@@ -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
...
...
src/pkg/math/hypot.go
View file @
f2734877
...
...
@@ -8,7 +8,7 @@ package math
Hypot -- sqrt(p*p + q*q), but overflows only if the result does.
*/
// Hypot
compute
s Sqrt(p*p + q*q), taking care to avoid
// Hypot
return
s Sqrt(p*p + q*q), taking care to avoid
// unnecessary overflow and underflow.
//
// Special cases are:
...
...
src/pkg/math/logb.go
View file @
f2734877
...
...
@@ -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
...
...
src/pkg/math/sincos.go
View file @
f2734877
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment