# cosh(3) [opendarwin man page]

```COSH(3) 						   BSD Library Functions Manual 						   COSH(3)

NAME
cosh -- hyperbolic cosine function

SYNOPSIS
#include <math.h>

double
cosh(double x);

DESCRIPTION
The coshf() function computes the hyperbolic cosine of x.

SPECIAL VALUES
cosh(+-0) returns 1.

cosh(+-infinity) returns +infinity.

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

STANDARDS
The cosh() function conforms to ISO/IEC 9899:1999(E).

BSD								 November 20, 2002							       BSD```

## Check Out this Related Man Page

```TANH(3) 						   BSD Library Functions Manual 						   TANH(3)

NAME
tanh, tanhf -- hyperbolic tangent function

LIBRARY
Math Library (libm, -lm)

SYNOPSIS
#include <math.h>

double
tanh(double x);

float
tanhf(float x);

DESCRIPTION
The tanh() and tanhf() functions compute the hyperbolic tangent of x.  For a discussion of error due to roundoff, see math(3).

RETURN VALUES
Upon successful completion, these functions return the hyperbolic tangent value.  The following may also occur:

1.	If x is +- 0, x is returned.

2.	If x is NaN, a NaN is returned.

3.	If x is positive infinity, a value 1 is returned; if x is negative infinity, -1 is returned.

4.	If x is subnormal, a range error can occur and x is returned.