acos
acos
description
Syntax
DOUBLE acos(DOUBLE x)
返回x
的反余弦值,若 x
不在-1
到 1
的范围之内,则返回 nan
.
example
mysql> select acos(1);
+-----------+
| acos(1.0) |
+-----------+
| 0 |
+-----------+
mysql> select acos(0);
+--------------------+
| acos(0.0) |
+--------------------+
| 1.5707963267948966 |
+--------------------+
mysql> select acos(-2);
+------------+
| acos(-2.0) |
+------------+
| nan |
+------------+
keywords
ACOS