cosh() - math.h
The C library function double cosh(double x) returns the hypebolic cosine of x.
Syntax
double cosh(double x)
Example
#include
#include
int main ()
{
double x;
x = 0.5;
printf("The hyperbolic cosine of %lf is %lf\n", x, cosh(x));
x = 1.0;
printf("The hyperbolic cosine of %lf is %lf\n", x, cosh(x));
x = 1.5;
printf("The hyperbolic cosine of %lf is %lf\n", x, cosh(x));
return(0);
}
Output / Return Value
The hyperbolic cosine of 0.500000 is 1.127626
The hyperbolic cosine of 1.000000 is 1.543081
The hyperbolic cosine of 1.500000 is 2.352410
Limitations
Alternatives / See Also
Reference