Functional Programming in Learning Electromagnetic Theory

Scott N. Walck
(Lebanon Valley College)

Electromagnetic theory is central to physics. An undergraduate major in physics typically takes a semester or a year of electromagnetic theory as a junior or senior, and a graduate student in physics typically takes an additional semester or year at a more advanced level. In fall 2023, the author taught his undergraduate electricity and magnetism class using numerical methods in Haskell in parallel with traditional analytical methods. This article describes what functional programming has to offer to physics in general, and electromagnetic theory in particular. We give examples from vector calculus, the mathematical language in which electromagnetic theory is expressed, and electromagnetic theory itself.

In Stephen Chang: Proceedings of the Thirteenth Workshop on Trends in Functional Programming in Education (TFPIE 2024), South Orange, New Jersey, USA, 9th January 2024, Electronic Proceedings in Theoretical Computer Science 405, pp. 20–35.
Published: 10th July 2024.

ArXived at: https://dx.doi.org/10.4204/EPTCS.405.2 bibtex PDF
References in reconstructed bibtex, XML and HTML format (approximated).
Comments and questions to: eptcs@eptcs.org
For website issues: webmaster@eptcs.org