6

Curve Fitting

So far we have considered the construction of a polynomial, which approximates a given function and takes the same values as the function at certain given points. This is called the method of collocation and the conditions are satisfied by the approximate Lagrange’s interpolation polynomial. When the given points are equally spaced, we can form a difference table and find the polynomial using Newton’s forward difference formula. For example, the polynomial 4x – 4x2 agrees with the function sin πx for images but this approximation is not very satisfactory because the polynomial 4x – 4x2 is larger than sin πx in the range (0,1) except ...

Get Numerical Methods now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.