next up previous
Next: Silly Stories Up: Codes Previous: Nicias: A Card-based Encryption

Particle in a Box: Quantum Mechanics in PostScript

Recently I learned to program in PostScript. My first project was a program to calculate the energy levels and wavefunctions of a particle in a one-dimensional box with an arbitrary potential within the box. The potential can be changed by modifying the function ``V'' near the top of the program. It uses an iterative ``shooting'' algorithm to solve for the eigenvalues and eigenfunctions.

Download particleinabox.ps



David Roundy 2000-09-18
Hosted by www.Geocities.ws

1