C examples for math.h:acosh
function
<cmath> <ctgmath> <math.h>
Compute area hyperbolic cosine of x.
long double acoshl (long double x); double acosh (double x); float acoshf (float x); float acosh (float x); double acosh (T x);
Parameter | Description |
---|---|
x | Value to calculate the hyperbolic cosine. If the argument is less than 1, a domain error occurs. |
Non negative area hyperbolic cosine of x, in the interval [0,+INFINITY].
#include <stdio.h> #include <math.h> int main ()//from ww w . ja v a 2 s . c om { double param = exp(2) - sinh(2); double result = acosh(param) ; printf ("The area hyperbolic cosine of %f is %f radians.\n", param, result); return 0; }