Description: A C++ programme finds the best-fitted straight line to the x and y values, and then writes
the original x, y values and the new y values on the line (for each x) to a data file.
X: 1.0000 2.0000 3.0000 4.0000 5.0000 6.0000 7.0000 8.0000 9.0000 10.0000 11.0000
12.0000 13.0000 14.0000 15.0000 16.0000 17.0000 18.0000 19.0000 20.0000
Y: 13.3068 15.0928 16.2509 18.6416 23.6987 27.6380 26.1267 28.4638 33.9061 35.6735
36.0599 39.9298 40.6010 40.0202 43.9743 43.4650 45.7730 50.0811 51.1671 52.4696
Hints for
To Search:
File list (Check if you may need any files):
bestfitted line.cpp