Namespaces
Variants

asinh, asinhf, asinhl

From cppreference.net
< c ‎ | numeric ‎ | math
Common mathematical functions
Functions
Basic operations
(C99)
(C99)
(C99)
(C99) (C99) (C99) (C23)
Maximum/minimum operations
Exponential functions
Power functions
Trigonometric and hyperbolic functions
Nearest integer floating-point
(C99) (C99) (C99)
(C23) (C23) (C23) (C23)
Floating-point manipulation
Narrowing operations
(C23)
(C23)
(C23)
(C23)
(C23)
(C23)
Quantum and quantum exponent
Decimal re-encoding functions
Total order and payload functions
Classification
Error and gamma functions
(C99)
(C99)
(C99)
(C99)
Types
Macro constants
Special floating-point values
Arguments and return values
Error handling
Fast operation indicators
Definiert im Header <math.h>
float asinhf ( float arg ) ;
(1) (seit C99)
double asinh ( double arg ) ;
(2) (seit C99)
long double asinhl ( long double arg ) ;
(3) (seit C99)
Definiert im Header <tgmath.h>
#define asinh( arg )
(4) (seit C99)
1-3) Berechnet den inversen hyperbolischen Sinus von arg .
4) Typgenerisches Makro: Wenn das Argument den Typ long double hat, wird asinhl aufgerufen. Andernfalls, wenn das Argument einen Ganzzahltyp oder den Typ double hat, wird asinh aufgerufen. Andernfalls wird asinhf aufgerufen. Wenn das Argument komplex ist, ruft das Makro die entsprechende komplexe Funktion auf ( casinhf , casinh , casinhl ).

Inhaltsverzeichnis

Parameter

arg - Fließkommawert, der den Flächeninhalt eines hyperbolischen Sektors darstellt

Rückgabewert

Wenn keine Fehler auftreten, wird der inverse hyperbolische Sinus von arg ( sinh -1
(arg)
, oder arsinh(arg) ), zurückgegeben.

Wenn ein Bereichsfehler aufgrund von Unterlauf auftritt, wird das korrekte Ergebnis (nach Rundung) zurückgegeben.

Fehlerbehandlung

Fehler werden gemeldet, wie in math_errhandling festgelegt.

Wenn die Implementierung IEEE-Gleitkommaarithmetik (IEC 60559) unterstützt,

  • Wenn das Argument ±0 oder ±∞ ist, wird es unverändert zurückgegeben.
  • Wenn das Argument NaN ist, wird NaN zurückgegeben.

Hinweise

Obwohl der C-Standard diese Funktion als "Areasinus Hyperbolicus" bezeichnet, sind die Umkehrfunktionen der hyperbolischen Funktionen die Areafunktionen. Ihr Argument ist die Fläche eines hyperbolischen Sektors, kein Bogen. Die korrekte Bezeichnung ist "inverser hyperbolischer Sinus" (von POSIX verwendet) oder "Areasinus Hyperbolicus".

Beispiel

#include <math.h>
#include <stdio.h>
int main(void)
{
    printf("asinh(1) = %f\nasinh(-1) = %f\n", asinh(1), asinh(-1));
    // special values
    printf("asinh(+0) = %f\nasinh(-0) = %f\n", asinh(0.0), asinh(-0.0));
}

Ausgabe:

asinh(1) = 0.881374
asinh(-1) = -0.881374
asinh(+0) = 0.000000
asinh(-0) = -0.000000

Referenzen

  • C23-Standard (ISO/IEC 9899:2024):
  • 7.12.5.2 Die asinh-Funktionen (S: 240-241)
  • 7.25 Typgenerische Mathematik <tgmath.h> (S: 373-375)
  • F.10.2.2 Die asinh-Funktionen (S: 520)
  • C17-Standard (ISO/IEC 9899:2018):
  • 7.12.5.2 Die asinh-Funktionen (S: 240-241)
  • 7.25 Typgenerische Mathematik <tgmath.h> (S: 373-375)
  • F.10.2.2 Die asinh-Funktionen (S: 520)
  • C11-Standard (ISO/IEC 9899:2011):
  • 7.12.5.2 Die asinh-Funktionen (S. 240-241)
  • 7.25 Typgenerische Mathematik <tgmath.h> (S. 373-375)
  • F.10.2.2 Die asinh-Funktionen (S. 520)
  • C99-Standard (ISO/IEC 9899:1999):
  • 7.12.5.2 Die asinh-Funktionen (S. 221)
  • 7.22 Typgenerische Mathematik <tgmath.h> (S. 335-337)
  • F.9.2.2 Die asinh-Funktionen (S. 457)

Siehe auch

(C99) (C99) (C99)
berechnet den Areakosinus Hyperbolicus ( arcosh(x) )
(Funktion)
(C99) (C99) (C99)
berechnet den Areatangens Hyperbolicus ( artanh(x) )
(Funktion)
(C99) (C99)
berechnet den Sinus Hyperbolicus ( sinh(x) )
(Funktion)
(C99) (C99) (C99)
berechnet den komplexen Areasinus Hyperbolicus
(Funktion)

Externe Links

Weisstein, Eric W. "Inverse Hyperbolic Sine." Von MathWorld — Eine Wolfram Web Resource.