Question: 6. (a) Write a short Python function called EDPP(x,h,f,df) which returns the first derivative of a given function f according to the method described in

 6. (a) Write a short Python function called EDPP(x,h,f,df) which returns

6. (a) Write a short Python function called EDPP(x,h,f,df) which returns the first derivative of a given function f according to the method described in problem 2c. The function should return the estimated first derivative. It should also use a print statement to present the estimated derivative to six decimal places and the percentage error in exponential notation to two decimal places. There should also be text explaining what the numbers are. For example, if the function is e", r = 1, and h = 0.01, then the result should be: In: EDPP(1,0.01,f, df) df estimate 2.718553, percent error = 9.98e-03 Out: 2.7185529865561504

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!