plpolf

calculate a polynomial through a set of points

parametertypeunitsdescription
x,yfloat*--datapoints
nint--number of datapoints
kint--degree of the polynomial
returns:void

Description

plpolf fits a polynomial of degree k through n points stored in the arrays x and y. If the NULL pointer is given instead of x or y, the values 0..n-1 are used instead. This routine is equivalent to plpoly, except that does not plot anything. After executing it, the function plpolv may be used to get the value of the polynomial in any x-position, or the function plpolc may be used to find the coefficients.

See also

plpoly, plpolc, plpolv, plpolc G.E.Forsythe, "Generation and use of orthogonal polynomials for data-fitting with a digital computer" SIAM Journal on Numerical Analysis, vol 5, page 74

Examples

See also

plpolc