C examples for math.h:cosh
function
<cmath> <ctgmath> <math.h>
Returns the hyperbolic cosine of x.
long double coshl (long double x); long double cosh (long double x); double cosh (double x); float coshf (float x); float cosh (float x); double cosh (T x);
Parameter | Description |
---|---|
x | Value representing a hyperbolic angle. |
Hyperbolic cosine of x.
#include <stdio.h> #include <math.h> /* cosh, log */ int main ()//from w w w .j a v a 2s . c om { double param = log(2.0); double result = cosh (param); printf ("The hyperbolic cosine of %f is %f.\n", param, result ); return 0; }