cosh
double cosh ( double x ); | math.h |
cplusplus.com |
Calculate hyperbolic cosine.
Returns hyperbolic cosine of x.
Parameters.
Return Value.
Hyperbolic Cosine of x.
Portability.
Defined in ANSI-C.
ANSI-C++ adds float and double overloaded versions of this function,
with the same bahavior but being both, parameter and result, of one of these types.
Example.
/* cosh example */
#include <stdio.h>
#include <math.h>
#define PI 3.14159265
main ()
{
double param, result;
param = 45;
result = cosh (param*PI/180);
printf ("Hyperbolic cosine of %lf degrees is %lf\n", param, result );
return 0;
}
Output:
Hyperbolic cosine of 45.000000 degrees is 1.324609