cos

description

Syntax

DOUBLE cos(DOUBLE x) Returns the cosine of x, where x is in radians

example

  1. mysql> select cos(1);
  2. +---------------------+
  3. | cos(1.0) |
  4. +---------------------+
  5. | 0.54030230586813977 |
  6. +---------------------+
  7. mysql> select cos(0);
  8. +----------+
  9. | cos(0.0) |
  10. +----------+
  11. | 1 |
  12. +----------+
  13. mysql> select cos(Pi());
  14. +-----------+
  15. | cos(pi()) |
  16. +-----------+
  17. | -1 |
  18. +-----------+

keywords

  1. COS