| // Copyright 2009 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| Floating-point arcsine and arccosine. |
| They are implemented by computing the arctangent |
| after appropriate range reduction. |
| // Asin returns the arcsine, in radians, of x. |
| // Asin(x) = NaN if x < -1 or x > 1 |
| func Asin(x float64) float64 |
| func asin(x float64) float64 { |
| return NaN() // special case |
| temp = Pi/2 - satan(temp/x) |
| // Acos returns the arccosine, in radians, of x. |
| // Acos(x) = NaN if x < -1 or x > 1 |
| func Acos(x float64) float64 |
| func acos(x float64) float64 { |