math.acos() function

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



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

Cloud or OSS?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: