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

664 B

title description aliases menu weight
math.acos() function The math.acos() function returns the arccosine of `x` in radians.
/influxdb/cloud/reference/flux/functions/math/acos/
influxdb_cloud_ref
name parent
math.acos Math
301

The math.acos() function returns the arccosine of x in radians.

Output data type: Float

import "math"

math.acos(x: 0.22)

// Returns 1.3489818562981022

Parameters

x

x should be greater than -1 and less than 1. Otherwise, the operation will return NaN.

Data type: Float

Special cases

math.acos(x: <-1) // Returns NaN
math.acos(x: >1)  // Returns NaN