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
1
2
3
4
5
6
7
8
import System;
 
Console.log(Math.atanh(-2));   // NaN
Console.log(Math.atanh(-1));   // -Infinity
Console.log(Math.atanh(0));    // 0
Console.log(Math.atanh(0.5));  // 0.5493061443340549
Console.log(Math.atanh(1));    // Infinity
Console.log(Math.atanh(2));    // NaN

Share

HTML | BBCode | Direct Link