mirror of
https://github.com/make-42/xyosc
synced 2025-01-18 18:57:10 +01:00
10 lines
180 B
Go
10 lines
180 B
Go
package math32
|
|
|
|
// Acos returns the arccosine, in radians, of x.
|
|
//
|
|
// Special case is:
|
|
// Acos(x) = NaN if x < -1 or x > 1
|
|
func Acos(x float32) float32 {
|
|
return Pi/2 - Asin(x)
|
|
}
|