"This book shows how to solve physics problems using Haskell, a functional programming language. Source code, equations, and diagrams throughout demonstrate how physics enthusiasts and functional programmers can use Haskell and its mathematical structures to solve problems from Newtonian mechanics and electromagnetics"--
Deepen your understanding of physics by learning to use the Haskell functional programming language.This book teaches you to solve physics problems using the functional programming paradigm. Ideal for first-time programmers and science aficionados alike, it introduces the Haskell programming language and encourages the writing of beautiful code to match the elegant ideas of theoretical physics. Haskell’s powerful system of types is capable of encoding important mathematical structures like vectors, derivatives, integrals, scalar fields, and differential equations. In addition, you’ll explore Newtonian mechanics and electromagnetics, analyze source code, and discover why Haskell’s high-order functions and referential transparency serve physics so well.