Effect of the grid size on rate of change of numerical errors for the first second fourth order approximations
Objective: clear all close all clc % First order approximations of the first derivate against the exact % solution % f(x) = sin(x)/x^3 x = pi/3 ; dx = linspace(pi/15,pi/40,25); % Computing Analytical derivative Analytical_derivative = ((cos(x))/x^3)-((3*sin(x))/x^4); for i =1:length(dx) % Computing Numerical derivative for first…