OpenBSD manual page server

Manual Page Search Parameters

COSH(3) Library Functions Manual COSH(3)

cosh, coshf, coshlhyperbolic cosine functions

#include <math.h>

double
cosh(double x);

float
coshf(float x);

long double
coshl(long double x);

The () function computes the hyperbolic cosine of x. The () function is a single precision version of cosh(). The () 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 29, 2021 OpenBSD-current