atanh Summary Get the hyperbolic arctangent of a number. Usage public static double atanh(double x) Returns The hyperbolic arctangent of the number. The returned value will be positive or negative infinity if the supplied argument is 1 or -1, respectively. All other out of range arguments will return a result of NaN. Parameters x The number to get the hyperbolic arctangent of. Description Returns the hyperbolic arctangent for a number within the range (-1, 1) (not inclusive). If the argument supplied is 1 or -1, the value returned will be positive or negative infinity, respectively. All other arguments outside of range will return NaN. Examples Basic Usage 12345678import System; Console.log(Math.atanh(-2)); // NaNConsole.log(Math.atanh(-1)); // -InfinityConsole.log(Math.atanh(0)); // 0Console.log(Math.atanh(0.5)); // 0.5493061443340549Console.log(Math.atanh(1)); // InfinityConsole.log(Math.atanh(2)); // NaN Share HTML | BBCode | Direct Link