Skip to main content

TANH

Description​

Returns the hyperbolic tangent of x.

Syntax​

TANH(<x>)

Parameters​

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

Return Value​

The hyperbolic tangent of parameter x.

Example​

select tanh(0),tanh(1);
+-------------------------+-------------------------+
| tanh(cast(0 as DOUBLE)) | tanh(cast(1 as DOUBLE)) |
+-------------------------+-------------------------+
| 0 | 0.7615941559557649 |
+-------------------------+-------------------------+