TAN
A function that calculates the tangent. expr is expected in radians (not degrees).
Syntax
sql
TAN(expr)Argument
expr: A real number representing radians or an argument of another data type that can be implicitly converted to a numeric data type.
Return Value
The return value has the same data type as expr.
Example
sql
SELECT tan(NULL), tan(0), tan(1), tan(acos(-1));+-------------+-------------+-------------+-----------------+
| TAN(NULL) | TAN(0) | TAN(1) | TAN(ACOS(-1)) |
|-------------+-------------+-------------+-----------------+
| NULL | 0 | ~1.56 | 0 |
+-------------+-------------+-------------+-----------------+