Jump to: navigation, search

Mysql COS

From w3cyberlearnings

Contents

MySQL COS Function

This function returns the cosine of X, and X is given in radians.

Syntax COS

X is an integer and its value in radians.
COS();

Example 1

mysql> SELECT COS(PI());
+-----------+
| COS(PI()) |
+-----------+
|        -1 |
+-----------+
1 row in set (0.00 sec)

Example 2

mysql> SELECT COS(6);
+-------------------+
| COS(6)            |
+-------------------+
| 0.960170286650366 |
+-------------------+
1 row in set (0.00 sec)

Related Links


Navigation
Web
SQL
MISC
References