]> Exercises

Exercises

  1. Approximate the integral 0 π x sin ( x ) d x using Simpson’s Method with N=8. Judging from the result that you got, what do you think the value of this integral probably is? You can check this using Maple to get the analytical result.

     f(0) 0
     f( π /8) 0.1502794
     f( π /4) 0.5553608
     f(3 π /8) 1.088419
     f( π /2) 1.570796
     f(5 π /8) 1.814033
     f(3 π /4) 1.666081
     f(7 π /8) 1.051956
     f( π ) 0

    0 π x sin ( x ) d x π / 8 3 [ 0 + 4 ( 0 .1502794 ) + 2 ( 0 .5553608 ) + 4 ( 1 .088419 ) + 2 ( 1 .570796 ) + 4 ( 1 .814033 ) + 2 ( 1 .666081 ) + 4 ( 1 .051956 ) + 0 ] 0 π x sin ( x ) d x 3.142014

    Maple Screenshot