[ENH] Quadrature API, both static as dynamic