Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this problem you want to estimate the derivative of the function = ( ) at = . See Lab 0 1 for the definition

For this problem you want to estimate the derivative of the function =() at
=. See Lab01 for the definition of (). Use both the forward difference,
(0)=(0+)(0)
+()
and the centered difference
(0)=(0+)(0)
2+(2)
For the step sizes, let =1/21
, with =1,2,...,. For =10, find and save the absolute
true errors
|,|=|()()|
for each difference approximation and step size.
a. Find the true value by hand using the definition of () given in Lab01.
b. Plot the log of the absolute error versus the log of for both the forward and the
centered approximation on the same set of axes. Do not use Matlabs loglog command.
c. Add a title, axes labels, and a legend.
d. Use Matlabs Basic Fitting Tool to find the slope, for each difference approximation.
e. Report the slopes you find and explain their values mathematically. Hint: If an error is
() then it is proportional to , while if it is (2), it is proportional to 2
.
f. Finally, experiment with to determine the optimum step size, , for each difference
approximation, that best balances the truncation and the round-off errors.

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

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions