Data Fitting Soutions
Exercise 1

The session below shows that both findg.py and findg_err.py give the same result for g for the file FreeFallData.txt.

In [24]: run findg_err.py
Enter file name: FreeFallData.txt
g = 6.7 +/- 2.92049e-06 m/s

In [25]: run ../../Examples_and_Data/findg.py
the acceleration due to gravity is:
6.69999786093

The uncertainty in g is very small because the distance fallen in FreeFallData.txt had no scatter.

The session below shows output of findg_err.py for the file FreeFallData_err.txt.

In [29]: run findg_err.py
Enter file name: FreeFallData_err.txt
g = 7.23728 +/- 1.08258 m/s

The corresponding plot is in the file FreeFallData_err_plot.pdf. The plot clearly shows scatter. In this case the computed uncertainty is larger.
