Double integral

Use quad to compute the following double integral: $$\int_0^2\int_0^3xy^2dydx$$

Analytic solution:

$$\left.\left.\frac{x^2}{2}\frac{y^3}{3}\right|^{y=3}_{y=0}\right|^{x=2}_{y=0} = 18$$
In [1]:
import numpy as np
from scipy.integrate import quad
In [ ]: