Die asinh () -Funktion in C ++ gibt den bogenhyperbolischen Sinus (inversen hyperbolischen Sinus) einer Zahl im Bogenmaß zurück.
Die Funktion asinh () verwendet ein einzelnes Argument und gibt den bogenhyperbolischen Sinus dieses Werts im Bogenmaß zurück.
Die Funktion ist in der Header-Datei definiert.
(Mathematik) sinh -1 x = asinh (x) (In C ++ Programmierung)
asinh () Prototyp (Stand C ++ 11 Standard)
doppelt asinh (doppelt x); float asinh (float x); langes doppeltes asinh (langes doppeltes x); doppelt asinh (T x); // Für integralen Typ
asinh () Parameter
Die Funktion asinh () verwendet ein einzelnes obligatorisches Argument, dessen inverser hyperbolischer Sinus berechnet werden soll.
Es kann ein beliebiger Wert sein, dh negativ, positiv oder Null.
asinh () Rückgabewert
Die Funktion asinh () gibt den inversen hyperbolischen Sinus des Arguments im Bogenmaß zurück.
Beispiel 1: Wie funktioniert die Funktion asinh () in C ++?
#include #include #define PI 3.141592654 using namespace std; int main() ( double x = -6.82, result; result = asinh(x); cout << "asinh(x) = " << result << " radian" << endl; // result in degrees cout << "asinh(x) = " << result*180/PI << " degree" << endl; return 0; )
Wenn Sie das Programm ausführen, lautet die Ausgabe wie folgt:
asinh (x) = -2,61834 Bogenmaß asinh (x) = -150,02 Grad
Beispiel 2: asinh () -Funktion mit ganzzahligem Typ
#include #include #define PI 3.141592654 using namespace std; int main() ( int x = 11; double result; result = asinh(x); cout << "asinh(x) = " << result << " radian" << endl; // result in degrees cout << "asinh(x) = " << result*180/PI << " degree" << endl; return 0; )
Wenn Sie das Programm ausführen, lautet die Ausgabe wie folgt:
asinh (x) = 3,0931 radian asinh (x) = 177,222 Grad