Jump to: navigation, search

PostgreSQL ACOS

From w3cyberlearnings

Contents

Postgresql ACOS

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

Syntax ACOS

X is cosine value.

ACOS(X);

Example 1

postgres=# SELECT ACOS(0);
      acos       
-----------------
 1.5707963267949
(1 row)


Example 2

postgres=# SELECT ACOS(-0.3);
       acos       
------------------
 1.87548898081029
(1 row)


Related Links



Navigation
Web
SQL
MISC
References