Description
The ACOS( ) function returns returns the arc cosine of a number.
This function has the form:
SELECT ACOS(number)
Parameter | Description |
---|---|
number | (required) A number |
Return Value
The arc cosine of number. Returns NULL if number is not in the range -1 to 1.
Examples
The following example shows the basic use of this function.
mysql> SELECT ACOS(1);
-> 0
mysql> SELECT ACOS(0);
-> 1.5707963267949