Discretization basics - Looking at the effect of dx on error.
Objective: I am going to write a program in MATLAB which will show the trend of how global truncation error for 1st, 2nd and 4th order approximations of the first derivative changes when we change the step size. Analytical function and its analytical derivative: Analytical function: `f(x) = sin(x)/x^3`, Analytical derivative:…