|
- Polynomial interpolation in higher dimensions is in the case of complete
rectangular grids as easy as in one dimension, especially if one uses the
representation by Lagrange's basis polynomials. In this case we have data
(xi, yj, f(xi, yj ))
0 <= i <= n, 0 <= j <= m
and the formula
p(x,y) = ∑ i=0,..,n , j=0,..,m f i,j Li,n(x) Lj,m(y) .
Here Li,n(x) resp. Lj,m(y) are the
well known basis polynomials of Lagrange in one dimension, for example
Lj,m(y) = Πk=0 to j-1, j+1 to m (y-yk)/(yj-yk)
- You can display an interpolating polynomial, the interpolation error or one of the 2d basis functions.
- you might equally well present your own (x,y,z)-data, of
course as an array of n × m points , compute the
corresponding interpolating polynomial and evaluate this on a given set
of (x,y) coordinates.
|