1. 程式人生 > >COS(x)

COS(x)

log () sql nbsp blog spa div logs sel

COS(x) 用於返回 x 的余弦,其中 x 為弧度值

mysql> SELECT COS(0), COS(PI()), COS(1);
+--------+-----------+--------------------+
| COS(0) | COS(PI()) | COS(1)             |
+--------+-----------+--------------------+
|      1 |        -1 | 0.5403023058681397 |
+--------+-----------+--------------------+

COS(x)