The math.atanh()
function returns the inverse hyperbolic tangent of a number.
math.atanh(x)
copy
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
.
You can use the math.degrees() function to get the returned angle in degrees.