Python math.tanh() Method

Math Methods : Find the hyperbolic tangent of different numbers

Definition and Usage

The math.tanh() method returns the hyperbolic tangent of a number.

Syntax

math.tanh(x)

Parameter Values

Parameter Description
x Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError

Technical Details

Return Value: A float value, representing the hyperbolic tangent of a number
Python Version: 1.4