Polynomial Interpolation and Least Square Approximation
For a list of points (xi, yi), a polynomial is determined that is defined by these points.
n+1 points, each with different x coordinates, uniquely determine an interpolation polynomial of degree n.
So you first have to determine the number of support points. You can also specify the desired polynomial degree.
If no polynomial degree is specified, a polynomial is determined according to the number of points by interpolation.
If the specified polynomial degree at n points is smaller than n-1, a balancing polynomial in the sense of the least squares method is determined by approximation.
Unlike interpolation, not all points have to have different x coordinates. It is sufficient if at least g+1 points have different x coordinates at polynomial degree g.
The points (xi, yi) can be manipulated using the table or by clicking and dragging with the mouse.
more JavaScript applications