Newton-Cotes formula