From 0490f773116d3742eff9c77e1ee41eb5d2912561 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 12 Jan 2010 07:38:31 +1100 Subject: Clean up and make consistent the comments in the math package. R=rsc CC=golang-dev http://codereview.appspot.com/186042 --- src/pkg/math/asin.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/pkg/math/asin.go') 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) } -- cgit v1.2.3