Python Tutorial Python Advanced Python Resources Python Libraries
Python Java C++ C C# PHP R SQL DS Algo InterviewQ

Python - math.atanh() Function



The Python math.atanh() function returns inverse hyperbolic tangent of a value. The inverse hyperbolic tangent of x is defined as:

atanh

Syntax

math.atanh(x)

Parameters

x Required. Specify the value.

Return Value

Returns the inverse hyperbolic tangent of a value.

Example:

In the example below, atanh() function is used to find out the inverse hyperbolic tangent of a value.

import math

print(math.atanh(0.5))
print(math.atanh(0.1))
print(math.atanh(-0.5))
print(math.atanh(-0.1))

The output of the above code will be:

0.5493061443340548
0.10033534773107558
-0.5493061443340548
-0.10033534773107558

❮ Python Math Module

5