指數函數在c語言實現


                                                        指數很重要,比如有一些歐拉公式

                                                       

#include "common.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
 
static float Mathematical_modeling = 0;
static int   capacitance_modeling  = 0;
static float value = 0;


int main()
{
    //e^pi*i+1 = 0; 歐拉公式 //可惜i寫不出來
    value = (float)exp(2);
    printf("value is e =%d\n", value);
    while (1)
    {
        getchar();
    }
    return 0;
} 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM