Question: ( 1 5 points ) Write a python code to approximate the first derivative of f ( x ) = x 2 at x 0

(15 points) Write a python code to approximate the first derivative of f(x)=x2 at x0=3 using the formula
f'(x)f(x+h)-f(x-h)2h.
Use your code to evaluate numerically the error of this method for h=10-1,dots,10-8 and explain what is happening to the error and why.
( 1 5 points ) Write a python code to approximate

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!