C Tutorial/math.h/atan

Материал из C\C++ эксперт
Версия от 10:32, 25 мая 2010; Admin (обсуждение | вклад) (1 версия: Импорт контента...)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

atan

Item Value Header file math.h Declaration float atanf(float arg);double atan(double arg);long double atanl(long double arg); Return returns the arc tangent of arg.


#include <math.h>
  #include <stdio.h>
  int main(void)
  {
    double val = -1.0;
    do {
      printf("Arc tangent of %f is %f.\n", val, atan(val));
      val += 0.1;
    } while(val<=1.0);
    return 0;
  }