TANH Function

Returns the hyperbolic tangent.

Category: Trigonometric
Returned data type: DOUBLE

Syntax

TANH(expression)

Arguments

expression

specifies any valid SQL expression that evaluates to a numeric value.

Restriction expression cannot be an odd multiple of π/2
Data type DOUBLE
See <sql-expression>
FedSQL Expressions

Details

The TANH function returns the hyperbolic tangent of the argument, which is given by the following equation.

Example

The following statements are examples of the TANH function:
Statements
Results
x=tanh(0);
0
x=tanh(0.5);
0.46211715726
select tanh(-0.5);
-0.46212
Last updated: February 23, 2017