From http://www.intmath.com/integration/5-trapezoidal-rule.php
Area≈21(y0+y1)Δx+21(y1+y2)Δx+21(y2+y3)Δx+
Area≈Δx(2y0+y1+y2+y3+…+2yn) for uniform grid
The trapezoidal rule finds the area. To get the average
value, you will need to divide the area by b-a which is the
the difference between the final and initial x values.
No comments:
Post a Comment