如何用程式近似e?

我有點看不太懂題目的意義,能解說一下嗎? 還有這題應該如何解呢… Euler’s number, e, is used as the base of natural logarithms. It can be approximated using the following formula:e = 1+1/1!+1/2!+1/3!+1/4!+1/5!+…+1/(n-1)!+1/n! Write a program that approximates e using a loop that terminates when the difference... show more 我有點看不太懂題目的意義,能解說一下嗎?


還有這題應該如何解呢…


Euler’s number, e, is used as the base of natural logarithms. It can be approximated using the following formula:e = 1+1/1!+1/2!+1/3!+1/4!+1/5!+…+1/(n-1)!+1/...


Write a program that approximates e using a loop that terminates when the difference between two successive values of e differ by less than 0.0000001.
1 answer 1