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
Get step-by-step solutions from verified subject matter experts
