The cos function returns the cosine of an input value.
(y: f)cos(x: f)
(y)cos(0.5f);
This example code calculates the cosine of 0.5 and stores the result in the variable y.
y