Question: USING MATLAB: Estimate the slope or the first order derivative, i.e. () of the function at = 2.0 using the following: (i) Forward difference approximation
USING MATLAB:
Estimate the slope or the first order derivative, i.e. () of the function
at = 2.0 using the following: (i) Forward difference approximation with a step size h = 0.25. (ii) Backward difference approximation with a step size h = 0.25. (iii) Centered difference approximation with a step size h = 0.25. For each estimated slope, provide the true percent relative error,
. Which approximation is the most accurate? (iv) Now repeat the central difference approximation, but with a step size of h = 0.1. Comparing the results of (iii) and (iv), what do you conclude on the dependence of the step size on accuracy? Box your answers in the printout.
f(x) = 252.3-62.2 + 7x-88
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
