Question: Consider the function f(x) = defined on x+1 [-10,10]. We define x = -10 + ih, where i = 0,..., n and h =
Consider the function f(x) = defined on x+1 [-10,10]. We define x = -10 + ih, where i = 0,..., n and h = 20 with n = 11, 21, 41, 81. Write n 1. a MATLAB script to 1. Calculate a numerical approximation of f'(x) for i = 1, ..., n 1 using backward difference formula. 2. Calculate the maximum of the absolute value of the errors with n = 11, 21, 41, 81. 3. Plot the results versus n. 4. Calculate a numerical approximation of f" (xi) for i = 1, ..., n 1 using mid- point formula. 5. Calculate the maximum of the absolute value of the errors with n = 11, 21, 41, 81. 6. Plot the results versus n.
Step by Step Solution
3.37 Rating (144 Votes )
There are 3 Steps involved in it
Solutions atlab code clc clear clearing the command window and workspace n 11214181 ... View full answer
Get step-by-step solutions from verified subject matter experts
