Mega Code Archive

 
Categories / MySQL Tutorial / Math Numeric Functions
 

COS(X) returns the cosine of X, where X is given in radians

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