polyinterp: Polynomial interpolation

Description Usage Arguments Details Value See Also Examples

View source: R/polyinterp.R

Description

Finds a polynomial function interpolating the given points

Usage

1
polyinterp(x, y)

Arguments

x

a vector of x values

y

a vector of y values

Details

polyinterp finds a polynomial that interpolates the given points.

Value

a polynomial equation's coefficients

See Also

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

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

Examples

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

cmna documentation built on July 14, 2021, 5:11 p.m.