CARM User's Guide

Discontinued

cosh

Summary
#include <math.h>

double cosh (
  double x);   /* value for hyperbolic cos function */
Description

The cosh function calculates the hyperbolic cosine of the floating-point value x.

Return Value

The cosh function returns the hyperbolic cosine for the value x.

See Also

sinh, tanh

Example
#include <math.h>
#include <stdio.h> /* for printf */

void tst_cosh (void) {
  float x;
  float y;

  for (x = 0; x < (2 * 3.1415); x += 0.1) {
    y = cosh (x);

    printf ("COSH(%f) = %f\n", x, y);
  }
}