Comparison of Errors in numerical approximations of second order derivative calculated using different Finite Difference Schemes
Objective: MAIN PROGRAM MATLAB CODE: clear all close all clc %Analytical and Numerical Derivatives are calculated at x=pi/3 x=pi/3; %The range of values for gird spacing dx is represented by command below dx=linspace(pi/25,pi/500,100); %Function f(x)=exp(x)*cos(x) %We are intializing the size of the variables %CDS_fourth_order_error;RSSS_fourth_order_error;LSSS_fourth_order_error…