Categories:

Numeric Functions (Trigonometric)

ACOS

Computes the inverse cosine (arc cosine) of its input; the result is a number in the interval [-pi, pi].

Syntax

ACOS( <real_expr> )

Arguments

real_expr

This expression should evaluate to a real number greater than or equal to -1.0 and less than or equal to +1.0.

Returns

Returns the arc cosine in radians (not degrees) as a value in the range [-pi, pi].

Examples

SELECT ACOS(0), ACOS(0.5), ACOS(1);
+-------------+-------------+---------+
|     ACOS(0) |   ACOS(0.5) | ACOS(1) |
|-------------+-------------+---------|
| 1.570796327 | 1.047197551 |       0 |
+-------------+-------------+---------+