Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. Typically, reducing the step size h will result in a more accurate derivative approxi- mation. Our difference methods, however, have large round off errors

image text in transcribed

5. Typically, reducing the step size h will result in a more accurate derivative approxi- mation. Our difference methods, however, have large round off errors when h is too small (a) (1 point) Why do difference methods have issues with round off error when h gets very small? b) (4 points) Let's investigate with a test problem (a problem where we know the exact value of the derivative). Approximate I'll) for f(z) = ze* using a centered difference. In Matlab, create an array called h. Start with h (1)-0.05. In a while loop, dthe sep si by a facior of 2 each ilmaller thuu 10-13. Build another array error in the same loop containing the exact errors for each approximation. Create a log-log plot of the results with the command loglog (h, error) Your plot should show an h which minimizes the error. This is called an From your plot, estimate the optimalh. Turn in this answer along with the plot

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions