Exercise I to within $10^{-6}$ of the actual value.
3. Use Algorithm 4.4 with (i) $n = 4$, $m = 8$, (ii) $n = 8$, $m = 4$, and (iii) $n = m = 6$ to approximate the
following double integrals, and compare the results to the exact answers.
\(a.\) $\int_0^{\pi/4} \int_{\sin x}^{\cos x} (2y \sin x + \cos^2 x) dy \, dx$
\(b.\) $\int_1^e \int_1^x \ln xy \, dy \, dx$