>  Docs Center  >  Libraries  >  Galloy  >  mg_atanh
Libraries

mg_atanh

mg_atanh.pro (mglib)

Inverse hyperbolic tangent. Uses the formula:

$$\text{atanh}(z) = \frac{\ln(\frac{1 + z}{1 - z})}{2}$$

Syntax


result = mg_atanh(z)

Return value


float, double, complex, or double complex depending on the input

Parameters


z in required type=numeric

input

Examples


The arc hyperbolic sine function looks like:

IDL> x = 2. * findgen(1000) / 999. - 1. IDL> plot, x, mg_atanh(x), xstyle=1
This should look like:



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
My Account    |    Contact Us