Computational Physics, Physics, Math, Python.
numpy.linspace(0,1,nx) y = numpy.linspace(0,1,ny) p_an = p_analytical(x,y) plot_3D(x,y,p_an) How long do we iterate? We noted above that there is no time dependence in the Laplace equation. So it doesn’t make a lot of sense to use a for loop with nt iterations. Instead, we can use a while loop that