math.cos() function
The math.cos()
function returns the cosine of the radian argument x
.
Output data type: Float
import "math"
math.cos(x: 3.14)
// Returns -0.9999987317275396
Parameters
x
The value used in the operation.
Special cases
math.cos(±Inf) // Returns NaN
math.cos(NaN) // 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.