Python Tutorial Python Advanced Python References Python Libraries

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