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 USING MATLAB: Estimate the slope or the first order derivative, i.e. () 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,of the function at = 2.0 using the following: (i) Forward difference. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!