Skip to main content
VeloDB Cloud 4.x·Apache Doris 3.x·"Since X.Y" tags refer to Doris versionsversion mapping →

TAN

Description​

Returns the tangent of x, where x is the value in radians.

Syntax​

TAN(<x>)

Parameters​

ParameterDescription
<x>The value for which the tangent is to be calculated

Return Value​

Returns the tangent of x.

Example​

select tan(0),tan(1),tan(-1);
+------------------------+------------------------+-------------------------+
| tan(cast(0 as DOUBLE)) | tan(cast(1 as DOUBLE)) | tan(cast(-1 as DOUBLE)) |
+------------------------+------------------------+-------------------------+
| 0 | 1.5574077246549023 | -1.5574077246549023 |
+------------------------+------------------------+-------------------------+