Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC Numerics / Part 2 - The PowerPC Numerics C Implementation
Chapter 10 - Transcendental Functions / Hyperbolic Functions


atanh

You can use the atanh function 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
The atanh function returns the inverse hyperbolic tangent of its argument. This function is antisymmetric.

atanh(x) = arctanhx = y such that tanhy = x

The tanh function performs the inverse operation (tanh(y)) .

EXCEPTIONS
When x is finite and nonzero, the result of atanh(x) 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 the atanh function is a zero, a NaN, or an Infinity, plus other special cases for the atanh function.
Special cases for the atanh function
OperationResultExceptions raised
atanh(x) for |x| > 1NaNInvalid
atanh(-1) - None
atanh(+1) + None
atanh(+0) +0None
atanh(-0) -0 None
atanh(NaN) NaNNone[54]
atanh(+ ) NaNInvalid
atanh(- ) NaNInvalid

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.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996