Ph265, Programs that were or will be used in class
An example of a Unix shell script file for importing formulae into PYTHON programs
One element the above program needs
Another part of the above "package"
A small Python program for testing the goodness of the Euler methos in acceleating motion
A Python program for calculating the motion of harmonic oscillator using the Euler's method
A Python program for calculating the Earth's orbit using the Euler's method
A Python program for calculating the motion of harmonic oscillator using the Euler's
and the Verlet's
methods.
For HMWK4:
A Python program for calculating & plotting the Earth's orbit using the Euler's method
A Python program for calculating & plotting the Earth's and Moon's orbits using the Euler's method
Python program for calculating the motion of coupled spring oscillators
Python program for calculating the motion of coupled spring oscillators - MODIFIED!
Please use this program for working on the MIDTERM TASK; I added a number of elucidating comments.
The docking program with graphics
The docking program with graphics (better version, graphics details described in a handout).
Monte Carlo program for modeling transmission of neutrons through a slab
The docking program, a version that writes the calculated results in a docking.log file
-- see Problem 5 in the Final Exam.
Monte Carlo program for determining the critical mass (see Final Exam, Problem 4)
-- a program version that runs in Visual Python in MS Windows.
The same program as that above,
but a version that runs on the computers in Room 412.
A Monte Carlo program for calculating the probability that in a group of N people two of them celebrate their birthday on the same day.
(to be used in the Final Exam, Problem 1).