Electromagnetism and Numerical Calculation of Fields