How To Solve Schrodingers Wave Equation Numerically. Calculate the f(r) in the schrodinger equation of the form d2(psi(r)) = f(r)psi(r) if r == 0: The reduced radial wave function should indeed vanish for r = 0, too.

I!!!t (x,t)=#!2 2m!2!x2 (x,t)+u(x)(x,t) f=! Just solve the schrödinger equation with a guessed energy, and it always makes the wave function blow up at the infinity. # rhs of schrodinger equation hbar = 1 def psi_t(t, psi):