Sample code 5.1.2. Jacobi relaxation method to solve 3D Poisson equation.

SetDirectory["C:\\Users\\Yoon\\Documents\\teaching\\ZCE111\\1011SEM2\\notes\\lecture5\\3D"];(*The "SetDirectory" line has to be modified to point to your directory,if you are to run it in your own PC*)
<<initialisation3D.m;

(*Iterate for ntlast times*)(*Loop will break either
tol is met or n>ntlast*)

<<update3D.m;

<<efield3D.m;

<<Coulomb.m;