(a) Write a Matlab function that compute the numerical integral using the composite Boole's rule with...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(a) Write a Matlab function that compute the numerical integral using the composite Boole's rule with the definition where function numI = compBoole (f, a, b, N) a, f b : N : num I returned numerical integral. : function to be integrated, left and right end points of the interval, number of intervals, (b) Use your function compBoole.m to compute the integral of f(x) = e-x/2 on the interval [-3, 3] with N uniform intervals. Take number of intervals N to be 5 * 2k, with k = 1,2,3,4,5, The exact integral is 27 erf (32/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. (a) Write a Matlab function that compute the numerical integral using the composite Boole's rule with the definition where function numI = compBoole (f, a, b, N) a, f b : N : num I returned numerical integral. : function to be integrated, left and right end points of the interval, number of intervals, (b) Use your function compBoole.m to compute the integral of f(x) = e-x/2 on the interval [-3, 3] with N uniform intervals. Take number of intervals N to be 5 * 2k, with k = 1,2,3,4,5, The exact integral is 27 erf (32/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.
Expert Answer:
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these programming questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
I keep getting the second question wrong. Can you help me to getthat one, please thank you.I tried 8.66, and 8.67 does not are the correct answer A firm has 10 million shares outstanding with a...
-
1. In evaluating a claim of fraud, what factors does a court consider in determining whether reliance was justifiable? 2. In this case, what did the jury find with respect to the plaintiff's claim of...
-
In need of assistance with the following assignment, I'm writing a paper about a law case "Punitive Damages - State Farm Mutual Automobile Insurance Company v. Campbell" Will you help me by following...
-
Derive the first two equations of Equation 2.44. Q11=U+U cos 20+ U3 cos 40 Q12 U4-U3 cos 40 Q22 2=U-U cos 20+ U3 cos 40 U2 Q16 sin 20+ U3 sin 40 2 us Q26 sin 20-U3 sin 40 2 Q66 = (U-U4)-U3 cos 40...
-
Granville Community College is considering outsourcing the maintenance of its buildings and other facilities to an outside rm for $300,000 per year. The 2013 budget is as follows: Granville...
-
A+ Rental Cars corporate office offers each franchise location $20,000 each month to spend on local advertising. Some franchises take advantage of this offer, while others do not. We have gone back...
-
Acme Manufacturing currently employs 13 people in its receiving department. Each receiving dock clerk earns $50,000 per year. Each employee can unload up to 200 pallets of inventory per day. It...
-
Power Corp. reported the following data for calendar 2020: Total assets.............................................. $625,000 Current assets.......................................... 325,000 Total...
-
The following data represent the amount of time (in minutes) a random sample of eight students took to complete the online portion of an exam in a particular statistics course. Compute the mean,...
-
An insurance company crashed four cars in succession at 5 miles per hour. The cost of repair for each of the four crashes was \($422\), \($454\), \($419\), \($215\). Compute the range, sample...
-
A concrete mix is designed to withstand 3000 pounds per square inch (psi) of pressure. The following data represent the strength of nine randomly selected casts (in psi). 3950, 4080, 3300, 3100,...
-
Compute the range and sample standard deviation for the strength of this concrete (in psi). 3930, 4080, 3500, 3000, 2950, 3870, 4080, 4040
-
Sample: 25, 14, 1, 5, 10 Find the population mean or sample mean as indicated.
-
Relax-and-Enjoy Lake Development Corporation is developing a lakeside community at a privately owned lake. Relax-and-Enjoy employed the advertising firm of Boone, Phillips, and Jackson (BP&J) to...
-
What are the two methods used to translate financial statements and how does the functional currency play a role in determining which method is used?
-
Consider the dynamics of the damped, forced oscillator Classify the steady states in the position/velocity phase space (x, x). x + x - 2x + 3x = 0
-
Solve subject to the initial condition T(x, 0) = 1 and the boundary conditions T(0, t) = 0 and T(1, t) = 0. Report your answer in terms of the non-zero Fourier modes. aT at || 2
-
Consider two particles that are interacting via a LennardJones potential, The dynamic equation for the distance r between these particles is given by the force balance (in dimensionless form), where...
-
In 2018, Bert Richards transferred a \(\$ 100,000\) savings account to his wife in trust. The terms of the trust are that income is to be distributed annually to his wife, Mary Beth, the remainder to...
-
In 2018, Mr. Colburn created a trust for the benefit of his five adult children and transferred \(\$ 300,000\) to it. The trustee may decide how much income to pay to each child each year. The trust...
-
In problem 49, when does the estate's taxable year end? problem 49, John Henry died on May 1, 2018. When does his final 1040 have to be filed?
Study smarter with the SolutionInn App