math.atan() function

The math.atan() function returns the arctangent of x in radians.

*Output data type: Float*

  1. import "math"
  2. math.atan(x: 3.14)
  3. // Returns 1.262480664599468

Parameters

x

The value used in the operation.

*Data type: Float*

Special cases

  1. math.atan(x: ±0) // Returns ±0
  2. math.atan(x: ±Inf) // Returns ±Pi/2