Question: Consider the function f (x) = 1, defined on [-10,10]. We define x; = -10 + ih, where = 0,...,n and h = 20 with

 Consider the function f (x) = 1, defined on [-10,10]. We

Consider the function f (x) = 1, defined on [-10,10]. We define x; = -10 + ih, where = 0,...,n and h = 20 with n = 11, 21, 41, 81. Write 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" (x;) for i = 1,...,n - 1 using mid- point formula. 5. Calculate the maximum of the absolute value of the errors with nr 11, 21, 41, 81. 6. Plot the results versus n

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!