Cloud

tan

The tan() function returns the tangent of a specified angle, expressed in radians. See also tand() for an angle expressed in degrees.

Syntax

TAN(x)

Arguments

  • x: An angle, in radians, of type real or double precision.

Return type

Same as the input type (real or double precision).

Examples

Basic usage

SELECT TAN(1);
        tan
-------------------
 1.557407724654902
(1 row)

Zero angle

SELECT TAN(0);
 tan
-----
   0
(1 row)