Program for calculating the energies of the eigenstates of hydrogen, as well as writing the specified (radial) wavefunction to a .txt file. This is my solution to a homework problem in computational atomic physics.
The code you wrote is very good, and I want to borrow this code from you in my program. Although I ran the code through your guidance and got the results, I am not very familiar with Fortran. I want to rewrite the code in python, so I want to ask you how you get the H and S matrix elements. For example, how do you deal with the second-order differential, and how do you deal with the Gaussian integral.
Thank you for reading, if I can get a document of your idea of writing this code, I will not be very grateful to you.