Python math.atanh() Method
Example
Find the hyperbolic arctangent value of different numbers:
#Import math Library
import math
#print the hyperbolic
arctangent of different numbers
print (math.atanh(0.59))
print
(math.atanh(-0.12))
Try it Yourself »
Definition and Usage
The math.atanh()
method returns the hyperbolic arctangent of
a number.
Note: The parameter passed in atanh() must lie between -0.99 to 0.99.
Hyperbolic arctangent is also defined as an inverse arc tangent function of x, where x is the parameter passed in the function.
Syntax
math.atanh(x)
Parameter Values
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic arctanget of. It the value is greater than 0.99, or less than -0.99, it returns a ValueError. If the value is not a number, it returns a TypeError |
Technical Details
Return Value: | A float value, representing the hyperbolic arctangent of a number |
---|---|
Python Version: | 2.6 |