math.tan() function

The math.tan() function returns the tangent of the radian argument x.

*Output data type: Float*

  1. import "math"
  2. math.tan(x: 3.14)
  3. // Returns -0.001592654936407223

Parameters

x

The value used in the operation.

*Data type: Float*

Special cases

  1. math.tan(x: ±0) // Returns ±0
  2. math.tan(x: ±Inf) // Returns NaN
  3. math.tan(x: NaN) // Returns NaN