math.acos() function

The math.acos() function returns the arccosine of x in radians.

*Output data type: Float*

  1. import "math"
  2. math.acos(x: 0.22)
  3. // Returns 1.3489818562981022

Parameters

x

x should be greater than -1 and less than 1. Otherwise, the operation will return NaN.

*Data type: Float*

Special cases

  1. math.acos(x: <-1) // Returns NaN
  2. math.acos(x: >1) // Returns NaN