acosh - C math.h

C examples for math.h:acosh

Type

function

From

<cmath>
<ctgmath>
<math.h>

Description

Compute area hyperbolic cosine of x.

Prototype

long double acoshl (long double x);
     double acosh  (double x);
      float acoshf (float x);
      float acosh (float x);
     double acosh (T x);           

Parameters

Parameter Description
x Value to calculate the hyperbolic cosine. If the argument is less than 1, a domain error occurs.

Return Value

Non negative area hyperbolic cosine of x, in the interval [0,+INFINITY].

Example

Demo Code


#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;
}

Related Tutorials