Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

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

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions