Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

cosh, coshf, coshl - Cosinus hyperbolicus

&pagelevel(4)&pagelevel

Definition

#include <math.h>

double cosh(double x);
float coshf(float x); (C11)
long double coshl(long double x); (C11)

Diese Funktionen berechnen den Cosinus hyperbolicus für die Gleitkommazahl x.

Returnwert

cosh(x)

bei Erfolg.

 

HUGE_VAL
HUGE_VALF
HUGE_VALL

abhängig vom Funktionstyp, bei Überlauf.
errno wird auf ERANGE gesetzt (Resultat zu groß).

Beispiel

Folgendes Programm gibt für Werte aus [-1.0, +1.0] die entsprechenden Cosinus hyperbolicus-Werte aus.

#include <math.h>
#include <stdio.h>
int main(void)
{
  double x;
  for (x = -1.0; x <= 1.0; x = x + 0.1)
    printf("cosh(%f) = %f\n", x, cosh(x));
  return 0;
}

Siehe auch

acos, cos, sin, asin, sinh, tan, atan, atan2, tanh