TANH
Calculates the hyperbolic tangent of a specified value, which is the ratio of the hyperbolic sine to the hyperbolic cosine of the number, defined as (\tanh(x) = \frac{\sinh(x)}{\cosh(x)}).
See also:
[SELECT
]
Syntax
SELECT TANH(value) FROM <multipartIdentifier>;
Arguments
value
A numeric expression for which the hyperbolic tangent is to be calculated.
Return Value(s)
Returns the hyperbolic tangent of the specified value.
Examples
Calculate the hyperbolic tangent of 1
SELECT TANH(1) AS hyperbolic_tangent_value;
This query returns approximately 0.7616
, as the hyperbolic tangent of 1 is about 0.7616.
Calculate the hyperbolic tangent of 0
SELECT TANH(0) AS hyperbolic_tangent_value;
This query calculates the hyperbolic tangent of 0, resulting in 0
, since the hyperbolic tangent of 0 is exactly 0.