diff options
author | Rob Pike <r@golang.org> | 2010-01-12 07:38:31 +1100 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2010-01-12 07:38:31 +1100 |
commit | 0490f773116d3742eff9c77e1ee41eb5d2912561 (patch) | |
tree | bed73cf7ceb4990efe50299a296481aa55165544 /src/pkg/math/asin.go | |
parent | 6de77b3decb69b0c806361740ab187339326cee0 (diff) | |
download | golang-0490f773116d3742eff9c77e1ee41eb5d2912561.tar.gz |
Clean up and make consistent the comments in the math package.
R=rsc
CC=golang-dev
http://codereview.appspot.com/186042
Diffstat (limited to 'src/pkg/math/asin.go')
-rw-r--r-- | src/pkg/math/asin.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pkg/math/asin.go b/src/pkg/math/asin.go index 439673a3a..a9df66311 100644 --- a/src/pkg/math/asin.go +++ b/src/pkg/math/asin.go @@ -6,13 +6,13 @@ package math /* - * asin(arg) and acos(arg) return the arcsin, arccos, - * respectively of their arguments. - * - * Arctan is called after appropriate range reduction. - */ + Floating-point sine and cosine. -// Asin returns the arc sine of x. + They are implemented by computing the arctangent + after appropriate range reduction. +*/ + +// Asin returns the arcsine of x. func Asin(x float64) float64 { sign := false if x < 0 { @@ -36,5 +36,5 @@ func Asin(x float64) float64 { return temp } -// Acos returns the arc cosine of x. +// Acos returns the arccosine of x. func Acos(x float64) float64 { return Pi/2 - Asin(x) } |