Find this document at http://new.math.uiuc.edu/math198/cmpblld2

Brian Campbell-Deem, Math198

hydrogen.py is the final part of Physible and simulates ground-state electron measurements on an ensemble of hydrogen atoms. It "measures" an electron at a point based on the probability distribution (determined by the ground-state wavefunction) and draws it, and then repeats; thousands of points are measured per second and retained only momentarily, causing a dynamic, cloud-like appearance. The density gradient of this cloud demonstrates more clearly the most probable radii for the electron in the ground state of hydrogen, as well as the spherical symmetry; the whole system is drawn in a box (which also sets the limits of radial measurements, to keep it contained), and the whole scene slowly rotates, giving it a very atomic feel.