math.asin() function

The math.asin() function returns the arcsine of x in radians.

*Output data type: Float*

  1. import "math"
  2. math.asin(x: 0.22)
  3. // Returns 0.22181447049679442

Parameters

x

The value used in the operation. x should be greater than -1 and less than 1. Otherwise, the function will return NaN.

*Data type: Float*

Special cases

  1. math.asin(x: ±0) // Returns ±0
  2. math.asin(x: <-1) // Returns NaN
  3. math.asin(x: >1) // Returns NaN