C Tutorial/math.h/exp

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

exp

Item Value Header file math.h Declaration float expf(float arg);double exp(double arg);long double expl(long double arg); Return returns the natural logarithm e raised to the arg power.


#include <math.h>
  #include <stdio.h>
  int main(void)
  {
      printf("Value of e to the first: %f.", exp(1.0));
 
  }