Latest web development tutorials

C-Bibliotheksfunktionen - asin ()

C Standard-Bibliothek - <math.h> C Standard - Bibliothek - <math.h>

Beschreibung

C - BibliotheksfunktionenDoppel asin (double x) Liefert in Radiant der Arcussinus von x.

Erklärung

Hier ist () Anweisung asin-Funktion.

double asin(double x)

Parameter

  • x - zwischen [-1, +1] Bereich von Fließkommawerte.

Rückgabewert

Diese Funktion gibt in Radiant x Arkussinus ausgedrückt in Radiant Intervall [-pi / 2, + pi / 2].

Beispiele

Das folgende Beispiel zeigt asin () Funktion verwendet wird.

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

#define PI 3.14159265

int main ()
{
   double x, ret, val;
   x = 0.9;
   val = 180.0 / PI;

   ret = asin(x) * val;
   printf("%lf 的反正弦是 %lf 度", x, ret);
   
   return(0);
}

Lassen Sie uns zusammenzustellen und um das obige Programm ausführen, die in der folgenden führen:

0.900000 的反正弦是 64.190609 度

C Standard-Bibliothek - <math.h> C Standard - Bibliothek - <math.h>