cosh
hyperbolic cosine function
You're viewing an older version of this page (#3338). View the current version.
NAME
cosh
INTERFACE
#include <math.h>
double cosh ( double x ) long coshl ( long double x ) float coshf ( float x )
DESCRIPTION
The cosh function computes the hyperbolic cosine of x.
Example 1
#include <stdio.h>
#include <math.h>
int main(void)
{
double x=0.5;
double result= cosh(x);
printf("The hyperbolic cosine of %lf is %lf\n", x, result);
return 0;
}output
The hyperbolic cosine of 0.500000 is 0.875583SPECIAL VALUES
cosh ( ±0 ) returns 1.
cosh ( ±∞ ) returns +∞.
SEE ALSO
acos (3) , asin (3) , atan (3) , atan2 (3) , cos (3) , sin (3) , sinh (3) , tan (3) , tanh (3)
STANDARDS
The cosh function conforms to ISO/IEC 9899:1999(E).