Problem 1.4: (Verify Chapra Example 4.8 with MATLAB) Create a MATLAB program that uses a centered divided difference approximation of O(h) to estimate the first derivative of the function, f(x)--0. 1x4-0.1 5x3-05x2-0.25x + 1.2 at x = 0.5. Beginning with a step size of h -1, progressively divide the step size by a factor of 10 until h -10-10. Create a log-log plot of the step size vs. the error. Why does the plot have this shape?

Can someone write this in code. From the an application calledMatLab.

Problem 1.4: (Verify Chapra Example 4.8 with MATLAB) Create a MATLAB program that uses a centered divided difference approximation of O(h’) to estimate the first derivative of the function, f(x)–0. 1×4-0.1 5×3-05×2-0.25x + 1.2 at x = 0.5. Beginning with a step size of h -1, progressively divide the step size by a factor of 10 until h -10-10. Create a log-log plot of the step size vs. the error. Why does the plot have this shape? Show transcribed image text