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.
table with 1 row and 1 column , row1 column 1 , fraction e super eh r g u m e n t end super . minus . e super negative eh r g u m e n t end super , over e super eh r g u m e n t end super . plus . e super negative eh r g u m e n t end super end fraction , end table

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