PostgreSQL ATAN Function

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PostgreSQL ATAN() function

ATAN() function

The PostgreSQL atan() function is used to return the inverse tangent of a given argument.

Syntax :

atan(a)

PostgreSQL Version : 9.3

Pictorial presentation of PostgreSQL ATAN() function

Example 1: PostgreSQL ATAN() function

SELECT ATAN(0) AS "Atan (0)";

Output :

 Atan (0)
----------
        0
(1 row)

Example 2: PostgreSQL ATAN() function

SELECT ATAN(1) AS "Atan (1)";

Output :

     Atan (1)
-------------------
 0.785398163397448
(1 row)

Example 3: PostgreSQL ATAN() function

SELECT ATAN(2) AS "Atan (2)";

Output :

     Atan (2)
------------------
 1.10714871779409
(1 row)