Easy Tutorial
❮ Ref Math Sqrt Python String Isspace ❯

Python math.atanh() Method

Python math Module

Python math.atanh(x) returns the inverse hyperbolic tangent of x.

Python Version: 2.6

Syntax

The syntax for the math.atanh() method is as follows:

math.atanh(x)

Parameter:

Return Value

Returns a float representing the inverse hyperbolic tangent of x.

Example

The following example returns the hyperbolic tangent of a number:

Example

# Import math package
import math

# Output hyperbolic tangent
print(math.atanh(0.59))
print(math.atanh(-0.12))

Output result:

0.6776660677579618
-0.12058102840844402

Python math Module

❮ Ref Math Sqrt Python String Isspace ❯