asinh, asinhf, asinhl

Berechnet den umgekehrten hyperbolischen Sinus.

Syntax

double asinh( double x );
float asinhf( float x );
long double asinhl( long double x );
#define asinh(X) // Requires C11 or higher

float asinh( float x );  // C++ only
long double asinh( long double x );  // C++ only

Parameter

x
Gleitkommawert.

Rückgabewert

Die asinh Funktionen geben den umgekehrten hyperbolischen Sinus (Arc hyperbolic sine) von xzurück. Diese Funktion ist über der Gleitkommadomäne gültig. Wenn x ein stiller NaN, ein unbestimmter oder unendlicher Wert ist, wird derselbe Wert zurückgegeben.

Eingabe SEH-Ausnahme _matherr-Ausnahme
± QNaN, IND, INF Keine Keine

Hinweise

Wenn Sie C++ verwenden, können Sie Überladungen von asinh aufrufen, die float oder long double -Werte verwenden und zurückgeben. Wenn Sie in einem C-Programm nicht das <Makro tgmath.h> verwenden, um diese Funktion aufzurufen, asinh wird diese Funktion immer verwendet und zurückgegeben double.

Wenn Sie das <Makro tgmath.h>asinh() verwenden, bestimmt der Typ des Arguments, welche Version der Funktion ausgewählt ist. Ausführliche Informationen finden Sie unter "Typgenerika" .

Standardmäßig gilt der globale Zustand dieser Funktion für die Anwendung. Wie Sie dies ändern, erfahren Sie unter Globaler Status in der CRT.

Anforderungen

Funktion Erforderlicher C-Header Erforderlicher C++-Header
asinh, asinhf, asinhl <math.h> <cmath> oder <math.h>
asinh() makro <tgmath.h>

Zusätzliche Informationen zur Kompatibilität finden Sie unter Compatibility.

Beispiel

// crt_asinh.c
// Compile by using: cl /W4 crt_asinh.c
// This program displays the hyperbolic sine of pi / 4
// and the arc hyperbolic sine of the result.

#include <math.h>
#include <stdio.h>

int main( void )
{
   double pi = 3.1415926535;
   double x, y;

   x = sinh( pi / 4 );
   y = asinh( x );
   printf( "sinh( %f ) = %f\n", pi/4, x );
   printf( "asinh( %f ) = %f\n", x, y );
}
sinh( 0.785398 ) = 0.868671
asinh( 0.868671 ) = 0.785398

Siehe auch

Mathematische und Gleitkommaunterstützung
acosh, acoshf, acoshl
atanh, atanhf, atanhl
cosh, coshf, coshl
sinh, sinhf, sinhl
tanh, tanhf, tanhl