You are viewing an older version of this section. View current production version.
Join the MemSQL Community Today
Get expert advice, develop skills, and connect with others.

COS

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. NULL if x is NULL.

Example

+--------------------+
| cos(3.14159265359) |
+--------------------+
|                 -1 |
+--------------------+
1 row in set (0.05 sec)