Important: The information in this document is obsolete and should not be used for new development.
atanh
You can use theatanhfunction to perform the inverse hyperbolic tangent of a real number.
double_t atanh (double_t x);
x- Any floating-point number in the range -1
x
1.
DESCRIPTION
Theatanhfunction returns the inverse hyperbolic tangent of its argument. This function is antisymmetric.such that
The
tanhfunction performs the inverse operation .EXCEPTIONS
When x is finite and nonzero, the result of might raise one of the following exceptions:
- inexact (for all finite, nonzero values of x other than +1 and -1)
- invalid (if |x| > 1)
- underflow (if the result is inexact and must be represented as a denormalized number or 0)
SPECIAL CASES
Table 10-32 shows the results when the argument to theatanhfunction is a zero, a NaN, or an Infinity, plus other special cases for theatanhfunction.
Special cases for the atanhfunctionOperation Result Exceptions raised for |x| > 1 NaN Invalid None + ![]()
None +0 None None NaN None[54] NaN Invalid NaN Invalid EXAMPLES
z = atanh(1.0); /* z = +INFINITY */ z = atanh(-1.0); /* z = -INFINITY */
[54] If the NaN is a signaling NaN, the invalid exception is raised.