Keil Logo

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);
  }
}
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.