Resultants and contour integrals