Computational Physics, Physics, Math, Python.
discretizing the derivative in its first order approximation: def laplace2d(p, l2_target): '''Iteratively solves the Laplace equation using the Jacobi method Parameters: ---------- p: 2D array of float Initial potential distribution l2_target: float target for the difference between consecutive