docs-v2/content/v2.0/reference/flux/functions/math/tan.md

578 B

title description menu weight
math.tan() function The math.tan() function returns the tangent of the radian argument `x`.
v2_0_ref
name parent
math.tan Math
301

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

Parameters

x

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