Name

ACOS( )

Synopsis

ACOS(number)

This function returns the arc cosine of a given number. For numbers given that are greater than 1 or less than -1, NULL is returned.

SELECT ACOS(.5), ACOS(1.5);
+----------+-----------+
| ACOS(.5) | ACOS(1.5) |
+----------+-----------+
| 1.047198 |      NULL |
+----------+-----------+

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.