Polyint

Parent Previous Next

Polyint


Polynomial Interpolation (Neville’s algorithm)


Syntax


polyint(x, y, t)

x,y are vectors of the same size, t is a scalar

Return a value interpolated from x , y data set for t based on polynomial interpolation. The number of data points in x,y decides the order of polynomials.


Example


Input

Output

x = linspace(0, PI/8.0, 8)

y = sin(x)

polyint(x, y, PI/2.0)


See Also


Created with the Personal Edition of HelpNDoc: Free help authoring environment