ACOS()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Returns the arc cosine of the given argument.
USAGE
ACOS(radians)
Argument Name | Description |
---|---|
| An angle expressed in radians |
DETAILS
ACOS()
is a trigonometric function that returns the arc cosine of the supplied angle, expressed in radians.
A NULL
is returned if the argument is not a number between -1
and 1
.
EXAMPLES
SELECT ACOS(0.42), ACOS(2);
+----------------+---------+
| ACOS(0.42) | ACOS(2) |
+----------------+---------+
| 1.137351006725 | NULL |
+----------------+---------+