acos.go 180 B

123456789
  1. package math32
  2. // Acos returns the arccosine, in radians, of x.
  3. //
  4. // Special case is:
  5. // Acos(x) = NaN if x < -1 or x > 1
  6. func Acos(x float32) float32 {
  7. return Pi/2 - Asin(x)
  8. }