Worked example
Example: Seven ordinates. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Number of ordinates (Simpson needs an odd number) | 7.0000 - |
| Spacing between ordinates | 2.0000 - |
| Ordinate 1 | 0 - |
| Ordinate 2 | 2.1000 - |
| Ordinate 3 | 3.6000 - |
| Ordinate 4 | 4.4000 - |
| Ordinate 5 | 4.6000 - |
| Ordinate 6 | 4.0000 - |
| Ordinate 7 | 2.8000 - |
| Ordinate 8 | 0 - |
| Ordinate 9 | 0 - |
Applying the formula below gives:
| Result | Value |
|---|---|
| Trapezoidal rule | 40.200 |
| Simpson's rule (trapezoidal if the count is even) | 40.800 |
Open this example in the calculator and change any input.
Formula
\(I_T = h\left[\frac{y_0 + y_n}{2} + \sum y_i\right], \quad I_S = \frac{h}{3}\left[y_0 + y_n + 4\sum y_{odd} + 2\sum y_{even}\right]\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(n\) | Number of ordinates (Simpson needs an odd number) | - |
| \(h\) | Spacing between ordinates | - |
| \(y_{1}\) | Ordinate 1 | - |
| \(y_{2}\) | Ordinate 2 | - |
| \(y_{3}\) | Ordinate 3 | - |
| \(y_{4}\) | Ordinate 4 | - |
| \(y_{5}\) | Ordinate 5 | - |
| \(y_{6}\) | Ordinate 6 | - |
| \(y_{7}\) | Ordinate 7 | - |
| \(y_{8}\) | Ordinate 8 | - |
| \(y_{9}\) | Ordinate 9 | - |
| \(I_T\) | Trapezoidal rule | - |
| \(I_S\) | Simpson's rule (trapezoidal if the count is even) | - |
Method and standards
Numerical integration.
Where it is used
- Survey offsets and cross-sections.
- Totalising logged readings.
Common mistakes
- Even count with Simpson.
- Unequal spacing.
Assumptions and limits
- Equally spaced ordinates.
References
- Trapezoidal rule; Simpson's one-third rule
Questions and answers
Seven ordinates 0 … 2.8 at spacing 2?
Simpson 40.800, trapezoidal 40.200.
Uses?
Areas of irregular plots, flow totals from readings, indicator diagrams.
Which is better?
Simpson for smooth curves; both converge as spacing shrinks.
Method and article reviewed by FireCAD engineering on 12 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.