Java Script Codes
Below are some javascipt codes that I have written for use in our classes. Feel free to copy the source code and modify them to your needs. Let me know of any improvements you make so I can improve the ones listed here.
chn2txt is a program that will convert 1000 channel *.chn files to a text file.
gefit6 is a Gaussian curve fitting program for high resolution gamma spectroscopy. The difference between this code and gefit8 is that the double peak fit uses width values determined from the channel number. There are only 6 free parameters.
naisoilfit2 is a Gaussian curve fitting program for the NaI detector designed for analyzing soil samples. The only difference between this program and mcafit2 is the background function that is used.
disksources is a program that we use to determine the exponent for the power law relationship between counts/yield and Energy for the sources Bi207, Na22, and Co60.
cnf2txt is a program that will convert 8000 channel *.cnf files to a text file.
soilfit is a program that we use in our Radiation Physics lab to analyse environmental samples. The user enters the counts/yield for the energies of the two decay series of interest. The code finds the best fit using the same exponent for each decay series.
Valance Nucleon Levels is a program that calculates the energy levels for a valance nucleon.
Valance Electron Levels is a program that calculates the energy levels for a valance electron.
Valance Electron levels II is a program that calculates the atomic levels a valance electron with Z protons and n screening electrons. The program was written by Christos Gandara as part of his senior project.
Mortgage Calculator is a program that calculates the monthly mortgage for a loan. Click on one of the three buttons (Amount, Years, or Payment) to find its value for the other variables being fixed.
sinplot is a program that adds sin waves. You can add sin waves of frequencies nf0 for values of n from 1 to 6. For each frequency you can vary the amplitude of the sin wave. The program is designed to show how one can construct any periodic function by adding appropriate sin waves (i.e. Fourier analysis).
fourier1 is a program that does a fourier analysis of a period sound wave. You can upload a *.wav file from your computer, that is saved in either 8 bit, 16 bit (ideal), or 32 bit format. The program assumes a collection rate of 22050 samples/sec in determing the frequency. Move the cursors to the start and end of the analysis interval and set the number of cycles in the interval. Hit the fourier analysis button and the results will be listed and graphed.
musicnotes (work in progress)
sum2sin (work in progress)
German-English flash cards is a program to help improve one's german(english) vocabulary. Copy the source code and the gedict.js file to your computer and add your own vocabulary words.
Linear Interpolator is a program to do linear interpolation of two values.
Michaelis-Menten Fit is a program to fit data to the Michaelis-Menten formula.
There is a translation of this page the Czech language. All links to translations have been removed.
Physics Department| College of Science