TAN
Descriptionβ
Returns the tangent of x, where x is the value in radians.
Syntaxβ
TAN(<x>)
Parametersβ
Parameter | Description |
---|---|
<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 |
+------------------------+------------------------+-------------------------+