COSH(3) Library Functions Manual COSH(3)

coshhyperbolic cosine function

#include <math.h>

double
cosh(double x);

long double
coshl(long double x);

float
coshf(float x);

The () function computes the hyperbolic cosine of x.

cosh(±0) returns 1.

(±infinity) returns +infinity.

acos(3), asin(3), atan(3), atan2(3), cos(3), sin(3), sinh(3), tan(3), tanh(3), math(3)

The cosh() function conforms to ISO/IEC 9899:2011.

December 11, 2006 macOS 14.6