This calculator finds the least-squares fit to a list of two-column data as a polynomial up to a specified order.
The size of input data is limited to 1024 points or less to converve system resources. The input format must be strictly followed to have a correct data parsing.
Inputs
Numerical data only . Input data must have "," between columns and ";" between rows . [Space], [Tab], and [Enter] will be ignored.
Numerical Data:
-3.14159, -0.380816;
-2.82743, 0.109693;
-2.51327, 0.360918;
-2.19911, 0.569689;
-1.88496, 0.525525;
-1.5708, 0.87512;
-1.25664, 0.972466;
-0.942478, 0.999701;
-0.628319, 0.885151;
-0.314159, 0.656742;
0., 0.321475;
0.314159, 0.43627;
0.628319, -0.00668838;
0.942478, -0.373375;
1.25664, -0.704287;
1.5708, -0.820481;
1.88496, -0.994633;
2.19911, -0.959258;
2.51327, -0.870441;
2.82743, -0.890364;
3.14159, -0.238559;
Fitting Function:
Fit above data using polynomial a0 + a1 x + a2 x2 + ... + an xn ,
where n = , ai (i = 0, 1,..., n ) are constants to be determined.
Plot:
No plot
Plot input data only
Plot the best-fit curve only
Plot both data and the best-fit curve
Output:
ASCII Typing
ASCII Display
Standard Display
C / C++
Fortran
Hand Write
TeX