Calculating e^x without using any functions

前端 未结 4 2068
执笔经年
执笔经年 2020-12-05 05:47

We are supposed to calculate e^x using this kind of formula:

e^x = 1 + (x ^ 1 / 1!) + (x ^ 2 / 2!) ......

I have this code so far:

while (res         


        
4条回答
  •  一生所求
    2020-12-05 06:27

    What you presented here is an application of Horner scheme to calculate polynomials.

提交回复
热议问题