Loading...
Select Version
&pagelevel(4)&pagelevel
Definition | #include <math.h> double tanh(double x); Diese Funktionen berechnen im zulässigen Gleitkommaintervall die Funktion Tangens hyperbolicus von x. |
Returnwert tanh(x) für eine zulässige Gleitkommazahl x.
Beispiel | Folgendes Programm gibt den Tangens hyperbolicus einer eingelesenen Zahl aus. #include <math.h>
#include <stdio.h>
int main(void)
{
double x;
printf("Geben Sie bitte eine Zahl ein :\n");
scanf("%lf", &x);
printf("Der Tangens hyperbolicus von %g ist %g \n", x, tanh(x));
return 0;
}
|
Siehe auch sin, cos, tan, atan