PostgreSQL TAN Function

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

PostgreSQL TAN() function

TAN() function

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

Syntax :

tan(a)

PostgreSQL Version : 9.3

Pictorial presentation of PostgreSQL TAN() function

Example 1: PostgreSQL TAN() function

SELECT TAN(0) AS "Tan (0)";

Output :

 Tan (0)
---------
       0
(1 row)

Example 2: PostgreSQL TAN() function

SELECT TAN(1) AS "Tan (1)";

Output :

     Tan (1)
-----------------
 1.5574077246549
(1 row)

Example 3: PostgreSQL TAN() function

SELECT TAN(-1) AS "Tan (-1)";

Output :

     Tan (-1)
------------------
 -1.5574077246549
(1 row)