Loading
Approximate by applying a one-dimensional rule in each direction: tabulate f on a grid, weight each value, add and scale.
Evaluate with h = k = 0.25 by the trapezoidal rule.
| y \ x | 1 | 1.25 | 1.5 | 1.75 | 2 |
|---|---|---|---|---|---|
| 1 | 0.500000 | 0.444444 | 0.400000 | 0.363636 | 0.333333 |
| 1.25 | 0.444444 | 0.400000 | 0.363636 | 0.333333 | 0.307692 |
| 1.5 | 0.400000 | 0.363636 | 0.333333 | 0.307692 | 0.285714 |
| 1.75 | 0.363636 | 0.333333 | 0.307692 | 0.285714 | 0.266667 |
| 2 | 0.333333 | 0.307692 | 0.285714 | 0.266667 | 0.250000 |
For example .
Each point gets (its x-weight) × (its y-weight). With trapezoidal weights 1, 2, 2, 2, 1 in each direction:
Simpson's rule gives 0.3398; the exact value is 0.33979…
The calculator below opens on this integral.
Using the one-dimensional factor h/2.
Giving every point the same weight.
Odd number of strips with Simpson.
Mixing up x and y.
Rounding the grid values too early.
Writing only the final answer.
Write x*y for a product. Simpson's rule needs an even number of strips in each direction.
Add this calculator to a new note, next to your own working. It stays live: change the numbers there any time.