# cosh(3) [netbsd man page]

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

NAME
cosh, coshf -- hyperbolic cosine function

LIBRARY
Math Library (libm, -lm)

SYNOPSIS
#include <math.h>

double
cosh(double x);

float
coshf(float x);

DESCRIPTION
The cosh() and coshf() functions compute the hyperbolic cosine of x.

RETURN VALUES
If the magnitude of x is too large, cosh(x) and coshf(x) return Inf and sets the global variable errno to ERANGE.

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

STANDARDS
The cosh() function conforms to ANSI X3.159-1989 (``ANSI C89'').

BSD								    May 2, 1991 							       BSD```

## Check Out this Related Man Page

```sinh(3) 						     Library Functions Manual							   sinh(3)

NAME
sinh, cosh, tanh - Hyperbolic functions

LIBRARY
Math Library (libm.a)

SYNOPSIS
#include <math.h>

double  sinh   (double  x);  float  sinhf (float  x); long double sinhl	(long double x); double cosh  (double x); float  coshf (float  x);
long double coshl  (long double x); double tanh	(double x); float  tanhf (float  x); long double tanhl	(long double x);

STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:

cosh():	XPG4

sinh():	XPG4

tanh():	XPG4

DESCRIPTION
The sinh(), sinhf(), and sinhl() functions compute the hyperbolic sine of x.  Both sinh(x), sinhf(x), and sinhl(x) are defined as (exp(x) -
exp(-x))/2.

The  cosh(), coshf(),  and coshl() functions compute the hyperbolic cosine of x.  Both cosh(x), coshf(x), and coshl(x) are defined as (e**x
+ e**(-x))/2.

The tanh(), tanhf(), and tanhl() functions compute the hyperbolic tangent of x.	Both tanh(x), tanhf(x), and tanhl(x) are defined as  (e**x
- e**(-x))/(e**x + e**(-x)).

The following table describes function behavior in response to exceptional arguments:

--------------------------------------------------------------------
Function 		  Exceptional Argument	  Routine Behavior
--------------------------------------------------------------------
sinh(), sinhf(), sinhl()   |x|>ln(2 * max_float)   Overflow

cosh(), coshf(), coshl()   |x|>ln(2 * max_float)   Overflow
--------------------------------------------------------------------

The following table lists boundary values used by these functions:

---------------------------------------------------------------------
Value Name	   Data Type   Hexadecimal Value   Decimal Value
---------------------------------------------------------------------
ln(2 * max_float)   S_FLOAT     42B2D4FC 	   89.41599

T_FLOAT     408633CE8FB9F87E    710.475860073943
---------------------------------------------------------------------
delim off

sinh(3)```
Man Page