acos

description

Syntax

DOUBLE acos(DOUBLE x) Returns the arc cosine of x, or nan if x is not in the range -1 to 1.

example

1. mysql> select acos(1);
2. +-----------+
3. | acos(1.0) |
4. +-----------+
5. |         0 |
6. +-----------+
7. mysql> select acos(0);
8. +--------------------+
9. | acos(0.0)          |
10. +--------------------+
11. | 1.5707963267948966 |
12. +--------------------+
13. mysql> select acos(-2);
14. +------------+
15. | acos(-2.0) |
16. +------------+
17. |        nan |
18. +------------+

keywords

1. ACOS