SINHCOSH 3CW "06 March 2009" "mathcw-1.00"

Table of contents


NAME

sinhcoshf, sinhcosh, sinhcoshl, sinhcoshw, sinhcoshq, sinhcoshll, sinhcoshdf, sinhcoshd, sinhcoshdl, sinhcoshdll - hyperbolic sine and cosine functions

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern void sinhcoshf (float x, float *s, float *c);

extern void sinhcosh (double x, double *s, double *c);

extern void sinhcoshl (long double x, long double *s, long double *c);

extern void sinhcoshw (__float80 x, __float80 *s, __float80 *c);

extern void sinhcoshq (__float128 x, __float128 *s, __float128 *c);

extern void sinhcoshll (long_long_double x, long_long_double *s, long_long_double *c);

extern void sinhcoshdf (decimal_float x, decimal_float *s, decimal_float *c);

extern void sinhcoshd (decimal_double x, decimal_double *s, decimal_double *c);

extern void sinhcoshdl (decimal_long_double x, decimal_long_double *s, decimal_long_double *c);

extern void sinhcoshdll (decimal_long_long_double x, decimal_long_long_double *s,
                                                   decimal_long_long_double *c);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Compute the hyperbolic sine and cosine of x, which should be in the range [-Infinity, +Infinity]. The two values can usually be computed more quickly together than separately.

The argument-symmetry relations are cosh(-x) = cosh(x), and sinh(-x) = -sinh(x).

The numerical algorithms in sinhcosh(3CW) are identical to those in cosh(3CW) and sinh(3CW), so the computed hyperbolic sine and cosine are each guaranteed to be identical when computed separately with two function calls, or together with one call.


RETURN VALUES

If the argument is finite or infinite, its hyperbolic sine and cosine are returned via the final two pointer arguments, as long as they are non-NULL. If the argument is a NaN, that NaN is returned via the pointer arguments.

For non-NaN arguments, the hyperbolic cosine lies in [1,Infinity], and the hyperbolic sine in [-Infinity,+Infinity].

For non-NaN arguments, the hyperbolic sine always has the same sign as its argument, including zero and Infinity.


ERRORS

If the argument x is a NaN, errno is set to EDOM. If the argument x or the results are infinite, errno is set to ERANGE.

SEE ALSO

acosh(3CW), asinh(3CW), atanh(3CW), cosh(3CW), sinh(3CW), tanh(3CW).