Loading
Inverse interpolation answers the reverse question: for which does the table take a given ? Either swap the roles of and in Lagrange's formula, or solve Newton's formula for by iteration.
From the table of sin x (20°, 25°, 30°, 35°), find x where sin x = 0.390.
| y = sin x (now the input) | x (now the output) |
|---|---|
| 0.342 | 20° |
| 0.423 | 25° |
| 0.500 | 30° |
| 0.574 | 35° |
The y values are not equally spaced, so we use Lagrange's formula with x and y swapped, at y = 0.390.
Check: the weights add up to 1 (0.224954 + 1.031571 − 0.323738 + 0.067213 = 1).
The exact ; the small gap comes from the 3-decimal sine values in the table.
The calculator below opens on this table.
Forgetting to swap x and y.
Using Newton forward on the y values.
Sign slips in the products.
Not checking the weights.
A table that is not monotonic.
Writing only the final answer.
The iteration method needs equally spaced x.
Add this calculator to a new note, next to your own working. It stays live: change the numbers there any time.