Skip to main content

Categories: Math

ACOS

Computes the arccosine (inverse cosine) of a value in radians.

Syntax​

ACOS(numeric_expression NUMERIC) → DOUBLE​

  • numeric_expression: Value in range -1 to 1. Values outside this range return NaN.

Examples

ACOS example
SELECT ACOS(0)
-- 1.5707963267948966
ACOS example
SELECT ACOS(1.0)
-- 0.0
ACOS example
SELECT ACOS(-1)
-- 3.141592653589793
Return NULL for a NULL input
SELECT ACOS(NULL)
-- null