TAN

Trigonometric function that calculates the tangent of a specific value in radians.

Syntax

TAN(<value>)

Parameters

Parameter Description Supported input types
<value> The value that determines the returned tangent in radians. DOUBLE PRECISION

Return Type

TAN returns a value of type DOUBLE PRECISION.

Example

The following query calculates the tangent of 1.57 radians. 1.57 is approximately pi/2:

Interactive SQL Playground 🔥
SELECT TAN(1.57) as result;

The following query calculates the tangent of pi:

Interactive SQL Playground 🔥
SELECT ROUND(TAN(PI()), 5) as result;