HP-UX Reference (11i v2 04/09) - 3 Library Functions N-Z (vol 7)

s
sinhcosh(3M) sinhcosh(3M)
(Itanium(R)-based System Only)
NAME
sinhcosh( ), sinhcoshf( ), sinhcoshl( ), sinhcoshw( ), sinhcoshq( ) - functions that compute both hyperbolic
sine and hyperbolic cosine
SYNOPSIS
#include <math.h>
void sinhcosh(double x, double *sptr, double *cptr);
void sinhcoshf(float x, float *sptr, float *cptr);
void sinhcoshl(long double x, long double *sptr, long double *cptr);
void sinhcoshw(extended x, extended *sptr, extended *cptr);
void sinhcoshq(quad x, quad *sptr, quad *cptr);
DESCRIPTION
These functions are available only for Itanium-based systems.
sinhcosh() stores the hyperbolic sine of x in the object pointed to by sptr and stores the hyperbolic
cosine of x in the object pointed to by cptr.
sinhcoshf() is a float version of sinhcosh(); it takes float and float * arguments.
sinhcoshl() is a long double version of sinhcosh(); it takes long double and long
double * arguments.
sinhcoshw() is an extended version of sinhcosh(); it takes extended and extended * argu-
ments.
sinhcoshq() is equivalent to sinhcoshl() on HP-UX systems.
USAGE
To use these functions compile either with the default
-Ae option or with the
-Aa and the
-D_HPUX_SOURCE options.
To use
sinhcoshw() or sinhcoshq(), compile also with the -fpwidetypes option.
To use any of these functions, make sure your program includes
<math.h>, and link in the math library
by specifying -lm on the compiler or linker command line.
RETURN VALUE
sinhcosh(±0,sptr,cptr) stores ±0 in the object pointed to by sptr and 1 in the object pointed to by
cptr.
If x is ±INFINITY,
sinhcosh() stores ±INFINITY respectively in the object pointed to by
sptr and
stores +INFINITY in the object pointed to by
cptr.
If x is NaN,
sinhcosh() stores NaN in the objects pointed to by its pointer arguments.
When it raises no other exception, whether
sinhcosh() raises the inexact exception is unspecified.
ERRORS
No errors are defined.
SEE ALSO
acosh(3M), asinh(3M), atanh(3M), ccosh(3M), cosh(3M), csinh(3M), sinh(3M), tanh(3M), math(5).
STANDARDS CONFORMANCE
These functions are not specified by any standard.
Section 3992 Hewlett-Packard Company 1 HP-UX 11i Version 2: September 2004