MySQL ACOS() 反余弦函数


ACOS(x)函数返回x的反余弦值;如果x不在定义域[-1,1]中,将返回NULL;

mysql> SELECT ACOS(-1);
+-------------------+
| ACOS(-1)          |
+-------------------+
| 3.141592653589793 |
+-------------------+
1 row in set (0.00 sec)

mysql> SELECT ACOS(1.1);
+-----------+
| ACOS(1.1) |
+-----------+
|      NULL |
+-----------+
1 row in set (0.00 sec)

如需转载,请注明出处;本文地址:https://www.perfcode.com/p/mysql-acos-function.html