Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
COS
On this page
The COS() function computes the cosine of x, where x is given in radians.
Syntax
COS (x)
Arguments
-
x: the argument in radians
Return Type
Float or double.
Example
SELECT COS(3.14159265359);
+--------------------+
| cos(3.14159265359) |
+--------------------+
| -1 |
+--------------------+
1 row in set (0.05 sec)Last modified: