The mathAcos() function returns the arccosine of a number.
mathAcos()
0.12.0
A number between -1 and 1, inclusive
The arccosine (in radians) of the given number, a value between 0 and π
mathAcos(0); // 1.5707963267948966 (π/2)mathAcos(1); // 0mathAcos(-1); // 3.141592653589793 (π)mathAcos(0.5); // 1.0471975511965979 (approximately π/3) Copy
mathAcos(0); // 1.5707963267948966 (π/2)mathAcos(1); // 0mathAcos(-1); // 3.141592653589793 (π)mathAcos(0.5); // 1.0471975511965979 (approximately π/3)
Returns the arc cosine (or inverse cosine) of a number.
A numeric expression.
The
mathAcos()
function returns the arccosine of a number.Since
0.12.0
Param: x
A number between -1 and 1, inclusive
Returns
The arccosine (in radians) of the given number, a value between 0 and π
Example