C ++ asinh () - C ++ standaardbibliotheek

De functie asinh () in C ++ retourneert de boog hyperbolische sinus (inverse hyperbolische sinus) van een getal in radialen.

De functie asinh () accepteert één argument en retourneert de hyperbolische boogsinus van die waarde in radialen.

De functie is gedefinieerd in het header-bestand.

(Wiskunde) sinh -1 x = asinh (x) (in C ++ programmeren)

asinh () prototype (vanaf C ++ 11-standaard)

dubbele asinh (dubbele x); zweven asinh (zweven x); lange dubbele asinh (lange dubbele x); dubbele asinh (T x); // Voor integraal type

asinh () Parameters

De functie asinh () accepteert één verplicht argument waarvan de inverse hyperbolische sinus moet worden berekend.

Het kan elke waarde zijn, dwz negatief, positief of nul.

asinh () Retourwaarde

De functie asinh () retourneert de inverse sinus hyperbolicus van het argument in radialen.

Voorbeeld 1: Hoe werkt de functie 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; )

Wanneer u het programma uitvoert, is de uitvoer:

 asinh (x) = -2,61834 radialen asinh (x) = -150,02 graden 

Voorbeeld 2: asinh () functie met integraal type

 #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; ) 

Wanneer u het programma uitvoert, is de uitvoer:

 asinh (x) = 3.0931 radialen asinh (x) = 177.222 graden 

Interessante artikelen...