arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.08090cs.PL
收藏

学习电磁理论中的函数式编程

Functional Programming in Learning Electromagnetic Theory

Scott N. Walck

AI总结:

本文介绍作者在2023年秋季本科电磁学课程中并行使用Haskell数值方法与传统解析方法的教学实践,阐述函数式编程对物理学及电磁理论的贡献,并给出矢量微积分与电磁理论的应用示例。

摘要:

电磁理论是物理学的核心。物理学专业的本科生通常在大三或大四学习一个学期或一年的电磁理论课程,而物理学研究生通常还要再学习一个学期或一年更高级的课程。2023年秋季,作者在教授本科电学和磁学课程时,并行使用了Haskell中的数值方法和传统解析方法。本文描述了函数式编程能为物理学,特别是电磁理论提供什么。我们给出了矢量微积分(电磁理论表达所用的数学语言)以及电磁理论本身的例子。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑