cos

description

Syntax

DOUBLE cos(DOUBLE x) 返回x的余弦值,x 为弧度值.

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