User:Jake Mokris/Franck-Hertz: Difference between revisions

From Advanced Labs Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


Finally, here's the link to [http://www.pha.jhu.edu/~c173_608/franck-hertz/root/Franck_Hertz.C Petar's Franck-Hertz macro] from 2005.
Finally, here's the link to [http://www.pha.jhu.edu/~c173_608/franck-hertz/root/Franck_Hertz.C Petar's Franck-Hertz macro] from 2005.
== Warning! ==

Revision as of 18:06, 20 February 2011

I finished writing a program to fit the Franck-Hertz data; here it is: Media:Franck_Hertz_Analysis.txt. Again, change the extension to .C before running the program. I explain how it works in the comments before the code, so here I'll say what the result was: The fit worked better than I expected; however, as the program fits the data to gaussians, the peaks are a small distance from the actual peaks in the data - which is where the energy levels are. So really, the fit is inherently flawed: it doesn't give a good value for the location of the peaks. A fit to skewed gaussians (perhaps to a lognormal distribution) would work better.

Also, since what we're after in the data is the distance between peaks - i.e., the period - taking the Fourier transform of the data might be a good idea. But I haven't worked on that yet, and I don't know much about the actual implementation of a Fourier transform on a discrete data set (though I could tell you all about Schwartz space (which has nothing to do with Spaceballs)).

Finally, here's the link to Petar's Franck-Hertz macro from 2005.

Warning!