Warning
SingleStore 9.0 gives you the opportunity to preview, evaluate, and provide feedback on new and upcoming features prior to their general availability. In the interim, SingleStore 8.9 is recommended for production workloads, which can later be upgraded to SingleStore 9.0.
COS
On this page
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: February 24, 2023