Question: Q2. Develop a code to fit the following function using least square fit method on your own created ten data points (xi , yi). y
Q2. Develop a code to fit the following function using least square fit method on your own created
ten data points (xi
, yi). y = A/(x +B)
Obtain the values of A and B from the code. Plot your ten data points (xi
, yi) in origin along with
the plot of the given function using the values of A and B. Past the code in your answer sheet
along with screen shots of your input data and output values of A and B. Also paste the screen
shot of the origin plot as mentioned above.
(Hint: take the code for least square fit method which we developed in class and modify it for
the given function.
Computational physics
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
