====== tanh() ======
tanh ist definiert in der ''[[start|math]]'', die in C über ''math.h'', bzw. in C++ über ''cmath'' eingebunden wird.
===== Funktion =====
tanh() berechnet den Tangens Hyperbolicus des übergebenen Parameters. Im Gegensatz zum [[cos|Cosinus der Kreisfunktion]] wird hier der Bogen einer an zwei Punkten aufgehängten Kette beschrieben.
===== Signatur =====
#include
double tanh( double x );
float tanh( float x ); // nur C++
long double tanh( long double x ); // nur C++
**x**: Eingabewert
**Return value**: Wert des hyperbolischen Tangens
===== Beispiel =====
#include // für EXIT_SUCCESS
#include // für tanh
#include // für printf()
int main( void )
{
double value;
double area = log( 2.0 );
value = tanh( area );
printf( "tanh(%f) ist %f\n", area, value );
return EXIT_SUCCESS;
}
Ausgabe:
tanh(0.693147) ist 0.600000
===== Hinweis =====
In C++ wird diese Funktion mit einem ValueArray-Template, sowie einem Complex-Template überschrieben.
===== siehe auch =====
[[c:lib:math:start|math]]: [[c:lib:math:sinh()]], [[c:lib:math:cosh()]] \\
[[cpp:lib:valarray:start|ValArray]]: [[cpp:lib:valarray:cosh()]], [[cpp:lib:valarray:sinh()]], [[cpp:lib:valarray:tanh()]] \\
[[cpp:lib:complex:start|Complex]]: [[cpp:lib:complex:cosh()]], [[cpp:lib:complex:sinh()]], [[cpp:lib:tanh]] \\