Question: 2. For f(x) = et and h in the range (10-1,10-2, ..., 10-9), compute f'(0) (the exact value is obviously e = 1) using the

 2. For f(x) = et and h in the range (10-1,10-2,

2. For f(x) = et and h in the range (10-1,10-2, ..., 10-9), compute f'(0) (the exact value is obviously e = 1) using the MATLAB function from 2. Make a table which lists h in the first column, the one-sided approximation in the second column, the error in the one-sided approximation in the third column, the centered approximation in the fourth column, and the error in the centered approximation in the fifth 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. Approximations should be reported in fixed-point non-scientific notation with a full field of digits (say 14 past the decimal point). Plot both sets of errors versus h on the same log-log plot. Your plot should include a legend. What do you observe

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!