Evaluating numerical algorithm
When your data points are unequally spaced, standard forward/backward difference tables break down. Newton's Divided Difference Method solves this by dividing each difference by its corresponding interval span!
Given the unequally spaced dataset:
| x | 0 | 1 | 3 | 4 | 7 |
|---|---|---|---|---|---|
| y | 1 | 3 | 49 | 129 | 813 |
Let's estimate the value of at !
| x | y | 1st Order | 2nd Order | 3rd Order | 4th Order |
|---|---|---|---|---|---|
| 0 (x_0) | 1 (y_0) | 2 (f[x_0,x_1]) | 7 (f[x_0,x_1,x_2]) | 3 (f[x_0..x_3]) | 0 |
| 1 | 3 | 23 | 19 | 3 | - |
| 3 | 49 | 80 | 37 | - | - |
| 4 | 129 | 228 | - | - | - |
| 7 | 813 | - | - | - | - |
Newton Divided Difference Formula:
Substituting values ():
Using Newton's divided differences for unequal spacing, the estimated functional value at is 1.831!