SMS: Numerical analysis in electromagnetics