5.8 Trapezoidal rule