- Categories:
Numeric functions (Trigonometric)
TAN¶
Computes the tangent of its argument; the argument should be expressed in radians.
Syntax¶
TAN( <input_expr> )
Arguments¶
input_exprThe value or expression to operate on. The value must be in radians, not degrees. The data type must be FLOAT.
Returns¶
This function returns a value of type FLOAT.
Examples¶
SELECT TAN(0), TAN(PI()/3), TAN(RADIANS(90));
+--------+-------------+----------------------+
| TAN(0) | TAN(PI()/3) | TAN(RADIANS(90)) |
|--------+-------------+----------------------|
| 0 | 1.732050808 | 1.63312393531954e+16 |
+--------+-------------+----------------------+