Question: QUESTION 5 A formula to find a numerical approximation to the second derivative of a function f (x) is f', (x)-d2f dx2 f (x +

 QUESTION 5 A formula to find a numerical approximation to the

QUESTION 5 A formula to find a numerical approximation to the second derivative of a function f (x) is f', (x)-d2f dx2 f (x + h)-2f (x) + f (x-h) with the approximation being better and better as h 0, write a function file deriv2.m that imple- ments the formula. The inputs should be the function to be differentiated (remember the function handle construct @), the value of x, and the value of h. Use your code to estimate the second derivative of sin (x) at x = /4 with h = 10-1. [25]

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!