acos
Syntax Format
acos(x)
Overview
The acos function provides the inverse cosine for the indicated type value. The function returns the arccosine in radians in the range [0,π] of a number in the range [−1, 1], nil otherwise. The provided number value can only be within the [−1, 1] range to receive a result.
Parameters
| Parameter | Type | Purpose | 
|---|---|---|
| x | series or numeric | A number in the range [−1, 1] | 
Returns: same type as x.
Example
acos_value = acos(0) -- equals ~1.5708 radians