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.

Finds the line between the point [1,3] and [5,7]
PolyFit([[1, 3], [5, 7]])
x
+
2
Plot(x+2)
-12-8-4048126420-2-4-6

Finds the parabolic curve through the points [2,4], [3,1], [5,7]
PolyFit([[2, 4], [3, 1], [5, 10]])
5
x
2
2
-
31
x
2
+
25
Plot(2.5x^2-15.5x+25)
-12-8-4048126420-2-4-6

Finds the cubic curve through the points [0,1], [2,5], [3,4], [5,7]
PolyFit([[0, 1], [2, 5], [3, 4], [5, 7]])
11
x
3
30
-
17
x
2
6
+
31
x
5
+
1
Plot((11x^3)/30+(-17x^2)/6+(31x)/5+1)
-12-8-4048126420-2-4-6

References
A
B
C
D
E
F
G
H
I
J
K
L
M
N
P
Q
R
S
T
V
W
Z