C Tutorial/math.h/asin — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
|
(нет различий)
|
Текущая версия на 10:32, 25 мая 2010
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;
}