exp

2018-11-11 15:29 更新

  原型:extern float exp(float x);
 
 用法:#include <math.h>
 
 功能:求e的x次冪
 
 說(shuō)明:e=2.718281828...
 
 舉例:

     // exp.c
     
     #include <syslib.h>
     #include <math.h>

     main()
     {
       clrscr();        // clear screen
       textmode(0x00);  // 6 lines per LCD screen
       
       printf("e=%f\n",exp(1.0));
       
       getchar();
       return 0;
     }

以上內(nèi)容是否對(duì)您有幫助:
在線(xiàn)筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)