Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Linear Curve fitting

Enter the number of data points,n:


9
Enter the respective values of x and y:
19890 35200
19900 35600
19910 35700
19920 35800
19930 36000
19940 36100
19950 63100
19960 36000
19970 35900

The Table of the values you entered is as follows:


X Y
19890.000000 35200.000000
19900.000000 35600.000000
19910.000000 35700.000000
19920.000000 35800.000000
19930.000000 36000.000000
19940.000000 36100.000000
19950.000000 63100.000000
19960.000000 36000.000000
19970.000000 35900.000000

The required values of a and b are:


a=-1924282.77777778 and b=98.50000000
The best fitted line is:
y=-1924282.77777778+98.50000000x

Linear Curve fitting


Enter the number of data points,n:
4
Enter the respective values of x and y:
0 1.05
1 2.10
2 3.85
3 8.30

The Table of the values you entered is as follows:


X Y
0.000000 1.050000
1.000000 2.100000
2.000000 3.850000
3.000000 8.300000

The required values of a and b are:


a=0.30000000 and b=2.35000000
The best fitted line is:
y=0.30000000+2.35000000x

You might also like