Develop a Matlab code to calculate the numerical differentiation at ALL the following data points, a

Develop a Matlab code to calculate the numerical differentiation at ALL the following data points, and produce the following plot. To ensure high accuracy calculations, the equations given below MUST BE USED. First Derivative Error f'(x_i) = f(x_i + 1) – f(x_i)/h O(h) f'(x_i) = -f(x_i + 2) + 4f(x_i + 1) – 3f(x_i)/2h O(h^2) Backward difference First Derivative Error f'(x_i) = f(x_i) – f(x_i – 1)/h O(h) f'(x_i) = 3f(x_i) – 4f(x_i – 1) + f(x_i – 2)/2h O(h^2) Centered difference First Derivative Error f'(x_i) = f(x_i + 1) – f(x_i – 1)/h O(h^2) f'(x_i) = -f(x_i + 2) + 8f(x_i + 1) – 8f(x_i – 1) + f(x_i – 2)/12h O(h^4)

 

Looking for a Similar Assignment? Let us take care of your classwork while you enjoy your free time! All papers are written from scratch and are 100% Original. Try us today! Use Code FREE15