C-Bibliotheksfunktionen - cosh ()
C Standard - Bibliothek - <math.h>
Beschreibung
C - BibliotheksfunktionenDoppel cosh (double x) Gibt den hyperbolischen Kosinus von x.
Erklärung
Hier ist die cosh () Funktion Erklärung.
double cosh(double x)
Parameter
- x - Fließkommawert.
Rückgabewert
Diese Funktion gibt den hyperbolischen Kosinus von x.
Beispiele
Das folgende Beispiel zeigt die cosh () Funktion verwendet wird.
#include <stdio.h> #include <math.h> int main () { double x; x = 0.5; printf("%lf 的双曲余弦是 %lf\n", x, cosh(x)); x = 1.0; printf("%lf 的双曲余弦是 %lf\n", x, cosh(x)); x = 1.5; printf("%lf 的双曲余弦是 %lf\n", x, cosh(x)); return(0); }
Lassen Sie uns zusammenzustellen und um das obige Programm ausführen, die in der folgenden führen:
0.500000 的双曲余弦是 1.127626 1.000000 的双曲余弦是 1.543081 1.500000 的双曲余弦是 2.352410