C Tutorial/math.h/asin — различия между версиями

Материал из C\C++ эксперт
Перейти к: навигация, поиск
м (1 версия: Импорт контента...)
 
(нет различий)

Текущая версия на 13: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.


<source lang="cpp">#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;
 }</source>