Learn R Programming

cmna (version 0.1.2)

polyinterp: Polynomial interpolation

Description

Finds a polynomial function interpolating the given points

Usage

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

Other algebra: bilinear, cubicspline, division, fibonacci, horner, isPrime, linterp, nthroot, pwiselinterp, quadratic

Other interp: bezier, bilinear, cubicspline, linterp, nn, pwiselinterp

Examples

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

Run the code above in your browser using DataLab