Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python math.atanh() Method

Python math.atanh() Method

Python math Module Python math Module

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

The argument of math.atanh(x) is between -0.99 and 0.99.

Python version: 2.6

Syntax

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

math.atanh(x)

Parameter Description:

Return Value

Returns a floating-point number representing the inverse hyperbolic tangent of x.

Example

The following example returns the hyperbolic tangent of numbers:

Example

Import the math package

import

math

Output the hyperbolic tangent values

print

(

math

.

atanh

(

0.59

)

)

print

(

math

.

atanh

(

0.12

)

)

Output result:


0.6776660677579618
-0.12058102840844402

Python math Module Python math Module