Python – Find Inverse Hyperbolic Tangent – atanh() Function with Examples

`atanh()` function is used to find the inverse hyperbolic tangent of x in Python for the given input(x – parameter).

Syntax of `atanh()` Function

The syntax of `atanh()` function in Python is:

```math.atanh(x)
```

Parameters of `atanh()` Function in Python

`x` – Where `x` is any valid python number (positive or negative). This parameter is required.
Note: If the `x` parameter is not a number, `atanh()` function will return an ```Error. ```

Compatibility

`atanh()` function is available and compatible with both Python `2.x` and `3.x`. This function is a part of python standard math library.

Return Value of `atanh()` Function in Python

`atanh()` function returns the inverse hyperbolic tangent of x for the given input.

Python `atanh()` Function Example

```# import math library
import math

print(math.atanh(-0.2))
print(math.atanh(0))
print(math.atanh(0.2))
print(math.atanh(0.7))
print(math.atanh(-0.3677))

```

Output:

`-0.2027325540540822`
`0.0`
`0.2027325540540822`
`0.8673005276940531`
`-0.385760905411469`