Numerical Computation Of Electric And Magnetic Fields