Physics, Python Programming, Runge Kutta.
before we reach the main part of the equation, we need to define one more important function. def deriv(r,x): return np.array([r[1],-(2.0*mass/(hbar**2) * (E - v(x))*r[0])], complex) #The double star, **, is for exponents The deriv function is where the outputs from the Runge-Kutta get passed