1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
{{alias}}( x )
Computes the hyperbolic arctangent of a number.
The domain of `x` is restricted to `[-1,1]`. If `|x| > 1`, the function
returns `NaN`.
Parameters
----------
x: number
Input value.
Returns
-------
out: number
Hyperbolic arctangent (in radians).
Examples
--------
> var v = {{alias}}( 0.0 )
0.0
> v = {{alias}}( 0.9 )
~1.472
> v = {{alias}}( 1.0 )
Infinity
> v = {{alias}}( -1.0 )
-Infinity
> v = {{alias}}( NaN )
NaN
// The function underflows for small `x`:
> v = {{alias}}( 1.0e-17 )
0.0
See Also
--------
|