Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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, ..., 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started