cosh - Calculates hyperbolic cosine in C

/* cosh example */
#include <stdio.h>
#include <math.h>

int main ()
{
  double input , result;
  input = log(2.0);
  result = cosh (input);
  printf ("The hyperbolic cosine of %lf is %lf.\n", input, result );
  return 0;
}