cos
cosβ
descriptionβ
Syntaxβ
DOUBLE cos(DOUBLE x)
Returns the cosine of x
, where x
is in radians
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