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

545 B

title description menu weight
math.atan() function The math.atan() function returns the arctangent, in radians, of `x`.
v2_0_ref
name parent
math.atan Math
301

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

Output data type: Float

import "math"

math.atan(x: 3.14)

// Returns 1.262480664599468

Parameters

x

The value used in the operation.

Data type: Float

Special cases

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