TANH scalar function
The TANH function returns the hyperbolic tangent of the argument, where the argument is an angle, expressed in radians.
The schema is SYSIBM.
The TANH and ATANH functions are inverse operations.
The argument must be an expression that returns the value of any built-in numeric data type that is not DECFLOAT. If the argument is not a double precision floating-point number, it is converted to one for processing by the function.
The result of the function is a double precision floating-point number.
The result can be null; if the argument is null, the result is the null value.
Example: Assume that host variable HTANGENT is
DECIMAL(2,1) with a value of 1.5. The following statement returns
a double precision floating-point number with an approximate value
of 0.90.
SELECT TANH(:HTANGENT)
FROM SYSIBM.SYSDUMMY1;