Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

asin, asinf, asinl - Arcussinus

&pagelevel(4)&pagelevel

Definition

#include <math.h>

double asin(double x);
float asinf(float x); (C11)
long double asinl(long double x); (C11)

Diese Funktionen sind die Umkehrfunktionen zu den entsprechenden sin-Funktionen und berechnet zu einer Zahl x aus dem Intervall [-1.0, +1.0] den entsprechenden Winkel im Bogenmaß.

Returnwert   

arcussinus(x)

eine Gleitkommazahl entsprechend des Funktionstyps aus [-pi/2, +pi/2] für Werte x aus dem Intervall [-1.0, +1.0].


 0

für Werte außerhalb [-1.0, +1.0]. Zusätzlich wird errno auf EDOM gesetzt (domain error, d.h. Argument zu groß).

Beispiel

 Folgendes Programm berechnet für die Werte 0.0, 0.1,..., 1.0 die entsprechenden Arcussinus-Werte und gibt sie aus.

#include <math.h>
#include <stdio.h>
int main(void)
{
   double x;
   for(x = 0.0; x <= 1.0; x = x + 0.1)
       printf("x = %g : asin(%g) = %g\n", x, x, asin(x));
   return 0;
}

Siehe auch

sin, cos, acos, tan, atan, atan2