Jump to: navigation, search

Mysql ACOS

From w3cyberlearnings

Contents

MySQL ACOS Function

This function returns the arc cosine of X input. It returns NULL when X is not the range -1 to 1.

Syntax ACOS

X is cosine value.

ACOS(X);

Example 1

mysql> SELECT ACOS(0);
+-----------------+
| ACOS(0)         |
+-----------------+
| 1.5707963267949 |
+-----------------+
1 row in set (0.00 sec)

Example 2

mysql> SELECT ACOS(-0.3);
+------------------+
| ACOS(-0.3)       |
+------------------+
| 1.87548898081029 |
+------------------+
1 row in set (0.00 sec)

Related Links


Navigation
Web
SQL
MISC
References