Newton-Cotes rule