Trapezoidal rule

The trapezoidal rule approximates a definite integral by summing the areas of trapezoids between adjacent sample points. It is exact for linear functions and generally has second-order error.

Connect