next up previous contents
Next: Hints and Tips Up: General Chi-Squared Fitting Previous: General Chi-Squared Fitting

Description

In a previous example we considered fitting to a polynomial but here we are going to fit a set of points to a circle. So the fit parameters are X,Y and R (circle centre and radius). Provide a file that contains a set of points that lie roughly on a circle. Write a program that fits the points and prints the results. Organise the program so that there is a function that returns the RMS for a given (X,Y,R):-

      real function get_rms(X,Y,R)

This will make it easier to change the fit model.



n west (APC)
2000-03-08