The ACOS() function returns the arccosine (inverse cosine) of a given value. It calculates the angle whose cosine equals the input value, mathematically expressed as ACOS(x) = -i × ln(x + i√(1 - x²)). It's the inverse operation of the cosine function.

This function can be useful to measure the angular divergence between two moving averages as they drift apart over time.

ACOS(Value)

ArgumentData typeDescription
ValueNumber

The cosine of the angle for which you want to calculate the arccosine.

The input must be greater than or equal to −1 and less than or equal to 1 (between −1 and 1, inclusive). 

The ACOS() function returns a numeric value between 0 and π, inclusive.

This function is only available in the Polaris Calculation Engine.

ACOS(0.5)

Returns NaN when Angle is NaN.

FormulaResult
ACOS(-0.5)2.094
ACOS(-0.5) * 180 / PI()120
TODEGREES(ACOS(-0.5))120