MATLAB - Numerical Methods
Find the error in this MATLAB code snippet for forward difference:
f = @(x) log(x); x = 2; h = 0.001; df = (f(x+h) - f(x)) * h;
f = @(x) log(x); x = 2; h = 0.001; df = (f(x+h) - f(x)) * h;
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions