Trapezoidal approximation appears to be in working order.