Question: *2.44. Write a computer program to fit a straight line y s ax + b to tabulated (x,y) data, assuming that no more than 100

 *2.44. Write a computer program to fit a straight line y

*2.44. Write a computer program to fit a straight line y s ax + b to tabulated (x,y) data, assuming that no more than 100 data points will be taken in any one run Your program should read in and store the data, evaluate the slope a and intercept b of the best line through the data using Equations A. 1-3 through A.1-5 in Appendix A, then print out the measured values of x andy and calculated values of y( = ax + b) for cach tabulated value of x Test your program by fitting a line to the data in the following table: . 10 15 20 25 30 235553 892 12.15 15:38

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!