Python math.atanh() Method
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:
- x -- required, a positive or negative number between -0.99 and 0.99. If x is not a number, a TypeError is returned.
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
(
math
.
atanh
(
0.59
)
)
(
math
.
atanh
(
0.12
)
)
Output result:
0.6776660677579618
-0.12058102840844402
Python math Module