C Tutorial/math.h/asin


Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179

Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803

Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179

Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Материал из C\C++ эксперт
Перейти к: навигация, поиск

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;
  }