| COSH(3) | Library Functions Manual | COSH(3) |
cosh, coshf,
coshl — hyperbolic cosine
functions
Math Library (libm, -lm)
#include <math.h>
double
cosh(double
x);
float
coshf(float
x);
long double
coshl(long
double x);
The
cosh()
function computes the hyperbolic cosine of x. The
coshf()
function is a single precision version of cosh().
The
coshl()
function is an extended precision version of
cosh().
If the magnitude of x is too large,
cosh(x),
coshf(x) and
coshl(x) return infinity and
set the global variable errno to
ERANGE.
acos(3), asin(3), atan(3), atan2(3), cos(3), sin(3), sinh(3), tan(3), tanh(3)
The cosh() function first appeared in
Version 7 AT&T UNIX.
| June 7, 2025 | Debian |