Question: 2. For the same function and h in the range (10-1, 10-2, ..., 10-9], use your onesidediff to ap- proximate f'(n) (the exact value is

2. For the same function and h in the range (10-1, 10-2, ..., 10-9], use your onesidediff to ap- proximate f'(n) (the exact value is obviously -1). Make a table which lists h in the first column, the one-sided approximation in the second column, and the error in the one-sided approximation in the third column. Report h in scientific notation which a minimum number of displayed digits. Report errors in absolute value using scientific notation keeping 3 digits past the decimal. Approx- imations should be reported in fixed-point non-scientific notation with a full field of digits (say 14 past the decimal point). Plot the set of errors versus h. What do you observe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
