next up previous contents
Next: Complete and normalized wave Up: getallEs() Previous: getallEs()

Debugging

 

Compile and run your routine with the main program ``getallEsdebug.c'' in Appendix A. The program calls your routines to get and print out the energies of the filled states for the carbon atom. Carbon has electrons in three states: ``1s'' (l=0 with zero nodes), ``2s'' (l=0 with one node), and ``2p'' (l=1 with zero nodes). Note that, for now, we ignore electron-electron interactions and are taking the potential for carbon to be just V[k]=-Z/r[k], where Z=6. Verify that your results approach the correct analytic results with the expected error scaling with N.



Tomas Arias
Mon Feb 26 07:09:27 EST 2001