The Composite Trapezoidal Rule
- This gives the composite trapezoidal rule;
- The error is not the local error but the global error, the sum of local errors;
where
- Use the trapezoidal rule to estimate the integral from to for .
- Applying the trapezoidal rule:
Apply The trapezoidal rule to in interval of 1.8 and 3.4. (Example py-file:
mytrapezoid.py)
Figure 4.7:
Integration for by the trapezoidal rule.
|
Apply The trapezoidal rule to Simple Pendulum to find the period. (Example py-file:
simplependulum.py)
Table 4.4:
Integration for
by the trapezoidal rule.
|