TANH function in Oracle

TANH is one of the vital Numeric/Math functions of Oracle. It is used to get the hyperbolic tangent of a number. The TANH function is supported in the various versions of the Oracle/PLSQL, including, Oracle 12c, Oracle 11g, Oracle 10g, Oracle 9i and Oracle 8i.

Syntax:

TANH ( number )

Parameters:
number: It is used to specify the number to get the hyperbolic tangent value of.

Example 1:

TANH (1)

Output:

0.76159415595576

Explanation:
The hyperbolic tangent value of 1 is 0.76159415595576, and so is the result.

Example 2:

TANH (-1)

Output:

-0.76159415595576

Explanation:
The hyperbolic tangent value of -1 is -0.76159415595576, and so is the result.

Example 3:

TANH (0)

Output:

0

Explanation:
The hyperbolic tangent value of 0 is 0, and so is the result.

Please Share