TANH
A function that calculates the hyperbolic tangent. expr is expected to be in radians (not degrees).
Syntax
sql
TANH(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 tanh(NULL), tanh(0), tanh(1), tanh(acos(-1));+-------------+-------------+-------------+----------------+
| TANH(NULL) | TANH(0) | TANH(1) | TANH(ACOS(-1)) |
|-------------+-------------+-------------+----------------|
| NULL | 0 | ~0.76 | ~1 |
+-------------+-------------+-------------+----------------+