指数函数在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;
} 

猜你喜欢

转载自www.cnblogs.com/nowroot/p/12372444.html