Learn Physics with Functional Programming
- Paperback: 648 pages
- Publisher: WOW! eBook (January 31, 2023)
- Language: English
- ISBN-10: 1718501668
- ISBN-13: 978-1718501669
Learn Physics with Functional Programming: A Hands-on Guide to Exploring Physics with Haskell: Deepen your understanding of physics by learning to use the Haskell functional programming language
This Learn Physics with Functional Programming 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.
Along the way, you’ll learn:
- How to write beautiful code that expresses fundamental physical principles
- How to make graphs and animations of interesting situations
- How to program in a language that looks like mathematics
- How types, high order functions, and referential transparency serve physics well
Early chapters cover the basics of coding in Haskell, which has a powerful system of types capable of encoding important mathematical structures in physics, like vectors, derivatives, integrals, scalar fields, vector fields, and differential equations. Later sections of the book explore Newtonian mechanics and electromagnetics two central pillars of theoretical physics. In addition, you’ll get a deep look into source code, and discover why Haskell’s high-order functions and referential transparency serve physics so well.