Chapter 6 - Fitting Data Sets

6.2.4 Complete Code

In summary, the following is a working fit program

It defaults Maple to the directory where the data resides

It It reads in a data set data_xy.dat and converts the 2-D array in vectors

It performs a linear fit.

It plots the raw data and the fitted function.

It calculates the standard deviation as a measure of the goodness of the fit.

Non-linear fits

Non-linear fits can be done using precisely the same Maple command. Non linear fits refer to fits by functions in which the parameters appear non-linearly. For instance, fitting

a + b*t + c * exp ( d*t )

would yield a non-linear fit


  Section 6.2.3 Chapter 6 TOC

Any questions or suggestions should be directed to
Michel Vallières at vallieres@physics.drexel.edu