Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

tanh, tanhf, tanhl - Tangens hyperbolicus

&pagelevel(4)&pagelevel

Definition

#include <math.h>

double tanh(double x);
float tanhf(float x); (C11)
long double tanhl(long double x); (C11)

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