Question: You can approximate e using the following series: e = 1 + 1/1! + 1/2! + 1/3! + 1/4! + + 1/i! Write a program

 You can approximate e using the following series: e = 1

You can approximate e using the following series: e = 1 + 1/1! + 1/2! + 1/3! + 1/4! + + 1/i! Write a program that displays the e value for i = 10000, 20000, , and 100000. 1/i! is 1/i (i - 1)! Initialize e and item to be 1 and keep adding a new item to e. The new item is previous item divide by i for i = 2, 3, 4, )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!