This preview shows page 1. Sign up to view the full content.
Unformatted text preview: ( i ) number of data points used, ( ii ) step size, ( iii ) value of the integral, and ( iv ) exact error 1 . Print your code and include it in your solution. Name your code as simpson.m and submit soft copy as an e-mail attachment to firstname.lastname@example.org. (b) (3 pts.) Find the order of Simpsons method by running your code using various step-sizes. Include the output of your runs, and show clearly the operations you did to estimate the order. 3. (3 pts.) Find the quadrature formula Z 1-1 f ( x ) dx c 2 i = f ( x i ) that is exact for all quadratic polynomials. 4. (3 pts.) Find A , B and C so that the numerical integration rule of the form Z 1-1 xf ( x ) dx Af (-1 ) + Bf ( ) + C f ( 1 ) is exact for all f ( x ) polynomials of maximum degree m . What is m ? 1 Compute the error using the exact value of the integral. 1...
View Full Document
This note was uploaded on 03/16/2011 for the course ENGR 8101 taught by Professor Canor during the Fall '08 term at University of Georgia Athens.
- Fall '08