Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) Write a Matlab function that compute the numerical integral using the composite Boole's rule with the definition function num1 = compBoole(f, a, b, N)

image text in transcribed

(a) Write a Matlab function that compute the numerical integral using the composite Boole's rule with the definition function num1 = compBoole(f, a, b, N) where f function to be integrated left and right end points of the interval, a, b : N : number of intervals, 1 integral. (b) Use your function compBoole.m to compute the integral of f(x) = e-x2/2 on the interval [-3,3] with N uniform intervals. Take number of intervals N to be 5 * 2, with k = 1, 2, 3, 4, 5, The exact integral is V2? erf(3V2/2), where erf is a matlab built-in function. Print out the number of divided intervals along with the absolute numerical error. Plot the error against the divided interval length (b - a)/N 6/N using loglog scale. Numerically compute the rate of convergence for this rule. You shall observe the rate is approximately 6

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

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions

Question

Describe the five elements of the listening process.

Answered: 1 week ago