Question: This problem explores the trade-off between the truncation error in the finite difference approximation of the derivative and floating point truncation error incurred when using

 This problem explores the trade-off between the truncation error in the

This problem explores the trade-off between the truncation error in the finite difference approximation of the derivative and floating point truncation error incurred when using finite precision arithmetic. (a) Write a MATLAB script that computes the forward finite difference ap- proximation of the derivative of e3r for x = 1, Use step sizes ranging from 10-1 to 10-16. The logspace command may be useful here. Plot the error, using a log-log scale, between your approximation and the exact derivative for each of your step sizes (b) Based on your plot, what is the best step size to use for the finite difference step size? (c) Explain the behavior you see in the graph

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!