Question: In week 4-Thursday, we wrote a function that returned the approximated Euler number e^x (see video and/or slides and/or code posted that week). Change that

In week 4-Thursday, we wrote a function that returned the approximated Euler number e^x (see video and/or slides and/or code posted that week).

Change that function (or write a new one) that uses a WHILE loop and RETURNS the number of terms needed to approximate the Euler's number e to within 0.001

You may use math.e from the math module to compare your approximation

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 Programming Questions!