acos
Returns the arccosine (in radians) of the specified number.
Syntax
acos(x)
Parameters
Parameter |
Type |
Description |
---|---|---|
x |
number |
Numeric value (the value should be from -1 to +1) |
Return
Returns y such that x = cos(y).
Examples
Python
import math
x = 0.5
y = math.acos(x)
# y is 1.047197551
NexScript
x = 0.5
y = acos(x)
% y is 1.047197551