This tutorial explains how to use the MySQL ACOS function with syntax and examples.
The MySQL ACOS function returns the arc cosine of a number.
The syntax for the ACOS function in MySQL is:
ACOS( number )
The number used to calculate the arc cosine.
The ACOS function can be used in the following versions of MySQL:
Let's look at some MySQL ACOS function examples and explore how to use the ACOS function in MySQL.
For example:
mysql> SELECT ACOS(0.75);
Output: 0.7227342478134157
mysql> SELECT ACOS(0.2);
Output: 1.369438406004566
mysql> SELECT ACOS(-0.9);
Output: 2.6905658417935308
mysql> SELECT ACOS(2);
Output: NULL