docs-v2/content/influxdb/cloud/reference/flux/stdlib/math/sin.md

653 B

title description aliases menu weight
math.sin() function The math.sin() function returns the sine of the radian argument `x`.
/influxdb/cloud/reference/flux/functions/math/sin/
influxdb_cloud_ref
name parent
math.sin Math
301

The math.sin() function returns the sine of the radian argument x.

Output data type: Float

import "math"

math.sin(x: 3.14)

// Returns 0.0015926529164868282

Parameters

x

The radian value used in the operation.

Data type: Float

Special cases

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