Newton-Cotes formulas