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


sinh

You can use the sinh function to compute the hyperbolic sine of a real number.

double_t sinh (double_t x);
x
Any floating-point number.
DESCRIPTION
The sinh function returns the hyperbolic sine of its argument. This function is antisymmetric.

The asinh function performs the inverse operation (arcsinh(y)) .

EXCEPTIONS
When x is finite and nonzero, the result of sinh(x) might raise one of the following exceptions:

  • inexact (for all finite, nonzero values of x)
  • overflow (if the result is outside the range of the data type)
  • underflow (if the result is inexact and must be represented as a denormalized number or 0)

SPECIAL CASES
Table 10-28 shows the results when the argument to the sinh function is a zero, a NaN, or an Infinity.
Special cases for the sinh function
OperationResultExceptions raised
sinh(+0) +0None
sinh(-0) -0 None
sinh(NaN) NaNNone[50]
sinh(+ ) + None
sinh(- ) - None

EXAMPLES
sinh(1.0);  /* z  1.175201. The inexact exception is raised. */
sinh(-1.0); /* z  -1.175201. The inexact exception is raised. */

[50] If the NaN is a signaling NaN, the invalid exception is raised.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996