COSH 3CW "09 March 2006" "mathcw-1.00"

Table of contents


NAME

coshf, cosh, coshl, coshw, coshq, coshll, coshdf, coshd, coshdl, coshdll - hyperbolic cosine function

SYNOPSIS

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

#include <mathcw.h>

extern float coshf (float x);

extern double cosh (double x);

extern long double coshl (long double x);

extern __float80 coshw (__float80 x);

extern __float128 coshq (__float128 x);

extern long_long_double coshll (long_long_double x);

extern decimal_float coshdf (decimal_float x);

extern decimal_double coshd (decimal_double x);

extern decimal_long_double coshdl (decimal_long_double x);

extern decimal_long_long_double coshdll (decimal_long_long_double x);

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


DESCRIPTION

Compute the hyperbolic cosine of x. The argument should be in the range [-Infinity, +Infinity].

The argument-symmetry relation is cosh(-x) = cosh(x).


RETURN VALUES

If the argument is finite or infinite, the returned value of the hyperbolic cosine lies in [1,Infinity]. Otherwise, the argument is a NaN, so return that NaN.

ERRORS

If the argument is a NaN, set errno to EDOM. If the magnitude of the argument is of sufficient size that the function value is too large to represent (i.e., it overflows), set errno to ERANGE.

SEE ALSO

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