# usencrypt.atanh#

usencrypt.atanh(x, n=35, debug=False)#

Computes the hyperbolic arctangent of $$x$$ using the Newton-Raphson method.

Parameters
• x (usencrypt.cipher.Float or float) – The input value.

• n (int) – The number of iterations for the Newton-Raphson method. Defaults to 35.

Returns

The hyperbolic tangent of x.

Return type

usencrypt.cipher.Float

Note

It takes 35 iterations for the Newton-Raphson method to give negligible error on the range $$−0.9 < x < 0.9$$.

Warning

Is dependent on usencrypt.log(), but only for a very small range. See the warnings for usencrypt.log().

>>> import usencrypt as ue