MATLAB - Numerical Methods
Consider the MATLAB code:
What is the value of
f = @(x) x^2; x = 2; h = 0.01; df = (f(x+h) - f(x-h)) / (2*h);
What is the value of
df approximately?