acos
mathCalculates the inverse cosine (arccosine) in radians
Syntax
acos(number) Parameters
number (number) The number to calculate the arccosine of (must be between -1 and 1)
Returns
number The arccosine in radians
Examples
Input:
0 | acos Output:
1.571... (π/2) Input:
acos(1) Output:
0 Input:
acos(-1) Output:
3.142... (π) The acos() function calculates the inverse cosine (arccosine) of a number, returning the result in radians.
Usage
Use acos() to find angles from cosine values in trigonometric calculations. Input must be between -1 and 1.