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

Python cmath.atanh() Method

Python cmath.atanh() Method

Python cmath.atanh() method is used to returns the inverse hyperbolic tangent of a number.

This method cuts two branch:

Extends from 1 (continuous from below) along the real axis to ∞

Extends from -1 (continuous from above) along the real axis to -∞

Syntax:
cmath.atanh(x)

Parameter Values

Parameter Description
x It is required parameter to find the inverse hyperbolic arctangent of a number
Here is an example of Python cmath.atanh() Method:

import cmath
print (cmath.atanh(1+ 2j))

Output:
(0.17328679513998632+1.1780972450961724j)
Example 2:

import cmath
print (cmath.atanh(1+ 1j))

Output:
(0.40235947810852507+1.0172219678978514j)