ID EN
Mathematical Functions

ACOS(X)

MySQL 8.4

Returns the arc cosine of X, that is, the value whose cosine is X. Returns NULL if X is not in the range -1 to 1, or if X is NULL.

Syntax

MYSQL
SELECT ACOS(1);
0
SELECT ACOS(1.0001);
NULL
SELECT ACOS(0);
1.5707963267949

Examples

Example
MYSQL
SELECT ACOS(1);
0
SELECT ACOS(1.0001);
NULL
SELECT ACOS(0);
1.5707963267949