Skip to main content

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​

ParameterTypePurpose
xseries or numericA number in the range [−1, 1]

Returns: same type as x.

Example​

acos_value = acos(0) -- equals ~1.5708 radians