Home >>Python math Module >Python math.atanh() Method

Python math.atanh() Method

Python math.atanh() Method

Python math.atanh() Method in python is used to returns hyperbolic arc tangent of a given number in radians and it accepts a number (it must lie between -0.99 to 0.99).

Syntax:
math.atanh(x)

Parameter Values

Parameter Description
x It is required a number to find the hyperbolic arc tanget of a number, and If the value is not a number, it returns a TypeError
Here is an Example of Python math.atanh() Method:

import math 
print (math.atanh(0.17))
print (math.atanh(-0.18))

Output:
0.17166666350057913
-0.1819826886007058
Example 2:

import math 
z = -0.13
print("math.atanh(",z,"): ", math.atanh(z))
z = 0
print("math.atanh(",z,"): ", math.atanh(z))
z = .77
print("math.atanh(",z,"): ", math.atanh(z))

Output:
0.17166666350057913
-0.1819826886007058