MathStudio  Blog  Share  Manual  Forums  Support  SpaceTime is now MathStudio! 
      
      
 
       Download Manual

Space Space Space
ALGEBRA

BASIC

CALCULUS

CAS

DATA

ELEMENTARY

GRAPHING

MANUAL

MATRIX

NUMBER

PLOT

SCRIPTING

SPECIAL

SPECIAL POLYNOMIALS

STATISTICAL

TRIGONOMETRIC

VECTOR CALCULUS
  PolyFit(pList, var)
pList
A list with datapoints given in a [N,2] matrix. This list should be greater than 1 and less than 11.

var
Optional variable for the returned polynomial. If not given, then var=x.


Description
Finds a unique polynomial function of order N-1 through the given N data points.


Examples  
Finds the line between the point [1,3] and [5,7]


Finds the parabolic curve through the points [2,4], [3,1], [5,7]


Finds the cubic curve through the points [0,1], [2,5], [3,4], [5,7]



References
http://mathworld.wolfram.com/LagrangeInterpolatingPolynomial...
http://en.wikipedia.org/wiki/Lagrange_polynomial




Copyright © 2011 Pomegranate Software.  All rights reserved.