Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Required submission: 1 page PDF document and Matlab code uploaded to Crowdmark Consider a partition z.N of an interval a, b. For an integrable function

image text in transcribed
Required submission: 1 page PDF document and Matlab code uploaded to Crowdmark Consider a partition z.N of an interval a, b. For an integrable function f defined in the interval a,B the trapezoidal rule for the integral of f is In general, the distance between consecutive points in the partition of [a, b does not have to be the same. When, this partition consists of equally-spaced points, we have the formula km1 The goal of this assignment is to investigate the rate of convergence of this rule depending on the functions we want to integrate. To do this, first download from Canvas the MATLAB function that implements the trapezoidal rule. It has the following inputs: lower and upper bounds of the interval, number of points in the partition, and the function you want to integrate. To test the function, compute the integral of the function f(z): over 0,1 with N-100 points. What is the value you get? Consider the intervals h := (),?and 12 :-0.2r). Approximate the integrals over both 11 and 12 of the functions (r)sin)Jala)sin2r), and fslr)c) by using the Trapezoidal rule. Then plot the absolute error of the computed integral and its corresponding true value. Note that the true values can be easily computed by hand. Also, find the rate of convergence at which each error is going to zero. Which one is the fastest? Note that one error plot is always close to machine epsilon, what do you think is causing this extreme accuracy? This last question is difficult - you should use an internet search to try and get some information on what is happening and perhaps why Your conclusions should be explained in a one-page report. Your report must include the following (a) Output (value of the integral) of your test case f(x) on (0,1] with N-100 points. (b) Two loglog plots of the absolute errors, one for I and one for 12 (c) Rate of convergence of each error (6 in total). Why is one on the plots around machine epsilon for almost any values of N? (d) Make sure you answer all the questions in the document

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

More Books

Students also viewed these Databases questions

Question

To solve p + 3q = 5z + tan( y - 3x)

Answered: 1 week ago