Unformatted text preview: via step halving only when they exceed their alloted portions of the error requested. Use your code to • verify the degree of exactness of the method by integrating an appropriate set of poly-nomials; • integrate f ( x ) = e x on [ a, b ] = [0 , 2] and compare the true error, I ( f )-I n ( f ), and the error estimate that controls your termination of the adaptive algorithm; • compare the number of function evaluations required by the two adaptive forms of Newton Cotes to achieve a similar accuracy over the entire interval of integration. 1...
View Full Document
- Spring '11
- entire interval, newton cotes, adaptive Newton-Cotes integration