The math.atanh() function returns the inverse hyperbolic tangent of a number.

math.atanh(x) 

Where x is a real number between -1 and 1. If the number is outside of this range, a ValueError is raised.

The function  returns the corresponding angle in radians whose hyperbolic tangent equals to x.

import math

x = 0.5
result = math.atanh(x)
print(result) 
import math

values = [0.3, 0.7, 0.9]
results = [math.atanh(x) for x in values]
print(results)

You can use the math.degrees() function to get the returned angle in degrees.

import math

x = 0.5
result = math.atanh(x)
print(math.degrees(result))

 

import math

values = [0.3, 0.7, 0.9]
results = [math.atanh(x) for x in values]
print([math.degrees(x) for x in results])