Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Solutions atlab code clc clear clearing the command window and workspace n 11214181 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Electric Machinery

Authors: Charles Kingsley, Jr, Stephen D. Umans

6th Edition

71230106, 9780073660097, 73660094, 978-0071230100

More Books

Students also viewed these Programming questions

Question

Why are you interested in our program?

Answered: 1 week ago