SMS dit: Numerical methods in electromagnetism