Question: code for double integral with Simpson's rule

Solve the following problems using computer. Use Algorithm from  Algorithm 4.4 in the textbook with 1) n = 4,m = 8, 2) n = 8,m = 4, and 3) n = m = 6 to approximate the following double integral and compare the results to the exact solution
∫∫cos ydydx (interior integral from 0 to x and exterior integral is from 0 to pi)

Please Wait...