I am working on a simple example of how to numerically solve the time-independent Schrodinger Equation for the infinite square well. I've used the Euler Method to find values of the wave function, $\psi (x)$, but now I've just realized something - I have no clue how to determine the energies from this! I know that analytically this comes down to applying the Hamiltonian to the wavefunction, but how do I find the energies numerically??
I can provide more info if needed.