Text this: Mathematical Foundations of Computational Electromagnetism