hw7 - Assignment #7: Numerical Integration (part 2) Due...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment #7: Numerical Integration (part 2) Due date: Wednesday, November 3, 2010 (10:15am) For full credit you must show all of your work. 1. Estimate e cos2 x dx 0 " # using Basic Simpson’s rule. If the actual solution, to within 5 decimal places of accuracy, is 3.97746, what is the absolute error in the approximate answer you obtain? What is the error term for this approximation? If –92 < d 4 dx 4 e cos2 x ( ) < 174 for 0 x π , what is the upper bound on the error that you get by using this formula? What can you conclude from this about the practicality of using the upper bound on the error in the Basic Simpson’s rule to estimate the actual amount of error that will occur when applying it? 2. Using Matlab, write a program that implements the composite Simpson’s rule . Structure your code so that it can be easily re-used to estimate a variety of different definite integrals. a. Test your program by using it to estimate sin( x ) dx 0 # . If the true solution is 2, at how many points do you need to evaluate the function to obtain an estimate that is accurate to within 5 decimal places ( ε ½ × 10 –5 ), and what is the distance between neighboring points?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/29/2010 for the course CSCI cs taught by Professor Intern during the Fall '10 term at Minnesota.

Page1 / 2

hw7 - Assignment #7: Numerical Integration (part 2) Due...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online