C Tutorial/math.h/asin
asin
Item Value Header file math.h Declaration float asinf(float arg);double asin(double arg);long double asinl(long double arg); Return returns the arc sine. Parameter The argument must be in the range -1 to 1; otherwise a domain error will occur.
#include <math.h>
#include <stdio.h>
int main(void)
{
double val = -1.0;
do {
printf("Arc sine of %f is %f.\n", val, asin(val));
val += 0.1;
} while(val<=1.0);
return 0;
}