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.
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.
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.