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
Parameters
x
x
should be greater than -1 and less than 1.
Otherwise, the operation will return NaN
.
Special cases
math.acos(x: <-1) // Returns NaN
math.acos(x: >1) // Returns NaN
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.