Debugging

Test your code by compiling and running it with the main program in Appendix F. This program uses your subroutines to compute the Hartree energy for the 1s state of hydrogen as a function of the number of intervals N. (Recall that your previous answer for this energy was 5/16.) Don't worry if you see only third-order convergence; we will discuss this in lab.

Finally, for a thorough test, replace the ``Specs for hydrogen'' with the appropriate specifications for Carbon. The Hartree energy of the (non-interacting) carbon atom is 26.239197530865 hartree.


Tomas Arias 2007-02-27