Question: Use MATLAB to solve problem and show work. 2 2. (3 points) Consider the following integral:esin(a) dr 0 (a) Ok. This integral is hard to

Use MATLAB to solve problem and show work.

Use MATLAB to solve problem and show work. 2 2. (3 points)

2 2. (3 points) Consider the following integral:esin(a) dr 0 (a) Ok. This integral is hard to solve by hand. MATLAB has a built-in function that uses adaptive quadrature to get the result. The syntax is below exact integral (f, a,b); % f function, [a,b] = domain of integration This is an approximation, but it's a very good one. We'll consider it to be the exact answer. What is this exact answer? (b) Use this and your code from HW10 to complete the table below. We will just look at the Trapezoid rule for this particular integral trap error trap error / h2 1.6717 1.6938 10-1 16 32 (c) Look at column 2. Does Trapezoid rule converge to the right answer? (d) Look at column 3. Does Trapezoid rule converge at the right rate? If not, is it converging faster or slower than expected (e) Try it again, but this time integrate over 10, 1] instead of [0.2 Does Trapezoid rule converge to the right answer? Does Trapezoid rule converge at the right rate? (f) The trapezoid rule works like magic for some integrals. It is called "spectral accu racy" or "superalgebraic convergence." Given what you saw here, what is special about f(z) and a, b that gives a spectrally accurate Trapezoid rule

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!