= Solution
With unit strip width, the <composite trapezoidal rule> gives
$$
T_{24}=\sum_{i=1}^{25}f(i)-\frac{f(1)+f(25)}2\approx1.037-\frac{0.500+0.002}{2}=0.786.
$$
For <Simpson's rule>, the even integer arguments are the odd-numbered interior grid positions. Therefore
$$
S_{24}=\frac13\left[f(1)+f(25)+4\sum_{i=1}^{12}f(2i)+2\sum_{i=1}^{11}f(2i+1)\right]\approx\frac{0.502+4(0.336)+2(0.200)}3=0.748666\ldots.
$$
The requested two-decimal answers are \b[$T_{24}\approx0.79$ and $S_{24}\approx0.75$]. The supplied component sums are individually rounded; they should not be treated as exact simultaneous identities. Computing from the original <function> gives approximately $0.786685$ and $0.748700$, respectively, with the same two-decimal results.
Back to article page