I'm a beginner. I need to create a very basic C program. Basically the program has to perform least square analysis on 8 sets of data. The program needs to read the values (magnitude and velocity) from the keyboard. Magnitude is the x value and logvelocity is the y value. The program does work but its not giving me the correct results. Some help will be much appreciate. I have attached my attempt. Please keep it as simple as possible.
Thanks a lot.