Syntax
#include <math.h> double cosh(double x);Description
cosh returns the hyperbolic cosine of x. If the result is too large, cosh returns the value HUGE_VAL and sets errno to ERANGE.
This example calculates y to be the hyperbolic cosine of x.
#include <math.h>
int main(void)
{
double x,y;
x = 7.2;
y = cosh(x);
printf("cosh( %lf ) = %lf\n", x, y);
return 0;
/****************************************************************************
The output should be:
cosh( 7.200000 ) = 669.715755
****************************************************************************/
}
Related Information