Finds a polynomial function interpolating the given points

polyinterp(x, y)

Arguments

x

a vector of x values

y

a vector of y values

Value

a polynomial equation's coefficients

Details

polyinterp finds a polynomial that interpolates the given points.

See also

Examples

x <- c(1, 2, 3)
y <- x^2 + 5 * x - 3
f <- polyinterp(x, y)