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:
0.0, 0.414551;
0.1, 0.534459;
0.2, 0.682073;
0.3, 0.643164;
0.4, 0.768891;
0.5, 0.660281;
0.6, 0.664503;
0.7, 0.828999;
0.8, 1.02235;
0.9, 1.08677;
1.0, 1.07689;
1.1, 1.05097;
1.2, 1.18515;
1.3, 1.18178;
1.4, 0.895727;
1.5, 0.79358;
1.6, 0.804691;
1.7, 0.859215;
1.8, 0.916542;
1.9, 0.731479;
2.0, 0.61559;
2.1, 0.638317;
2.2, 0.583177;
2.3, 0.46666;
2.4, 0.366097;
2.5, 0.289775;
2.6, 0.170107;
2.7, 0.0399892;
2.8, -0.0634148;
2.9, -0.16235;
3.0, -0.274137;
3.1, -0.390202;
3.2, -0.388586;
3.3, -0.627472;
3.4, -0.460055;
3.5, -0.566657;
3.6, -0.718847;
3.7, -0.616809;
3.8, -0.946822;
3.9, -1.13584;
4.0, -0.782122;
4.1, -0.992098;
4.2, -1.20449;
4.3, -1.01899;
4.4, -1.16592;
4.5, -1.19063;
4.6, -0.812425;
4.7, -1.10856;
4.8, -0.752746;
4.9, -0.655559;
5.0, -0.737509;
5.1, -0.799995;
5.2, -0.546093;
5.3, -0.531922;
5.4, -0.516011;
5.5, -0.472423;
5.6, -0.348306;
5.7, -0.190675;
5.8, -0.0981659;
5.9, 0.0110435;
6.0, 0.110407;
6.1, 0.207854;
6.2, 0.379377;
6.3, 0.400733;
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