TANH Function

The TANH function returns the hyperbolic tangent of the argument, where the argument is an angle expressed in radians.

Read syntax diagramSkip visual syntax diagram
TANH Function

|--TANH--(--radian_expr--)--------------------------------------|

The following example returns the hyperbolic tangent of the values in the degrees column of the anglestbl table. The expression passed to the TANH function converts the degrees to radians.
SELECT TANH(degrees*180/3.1416) FROM anglestbl; 

Copyright© 2021 HCL Technologies Limited