跳到主要内容
跳到主要内容

cos

cos

description

Syntax

DOUBLE cos(DOUBLE x) 返回x的余弦值,x 为弧度值.

example

mysql> select cos(1);
+---------------------+
| cos(1.0) |
+---------------------+
| 0.54030230586813977 |
+---------------------+
mysql> select cos(0);
+----------+
| cos(0.0) |
+----------+
| 1 |
+----------+
mysql> select cos(Pi());
+-----------+
| cos(pi()) |
+-----------+
| -1 |
+-----------+

keywords

COS