math.tan() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.65 is the most recent stable version of Flux.

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

Output data type: Float

import "math"

math.tan(x: 3.14)

// Returns -0.001592654936407223



The value used in the operation.

Data type: Float

Special cases

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