gitee.com/quant1x/num@v0.3.2/math32/acos.go (about)

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