value obtained by Simpson’s rule is close to this.
Hence Simpson’s rule gives a better approximation
than the Trapezoidal rule.
Example 8.18
Evaluate
1
0
(1sin4)
x
exdx
−
+
∫
with equally spaced
quadrature nodes x
0
, x
1
, x
2
, x
3
and x
4
separated
by distance
=
1
4
h
using (i) Trapezoidal rule,
(ii) Simpson’s and (iii) Boole’s rules.
SolutionConstructing the table of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.