This book sets out to unlock the mysteries of theoretical physics by coding the underlying math in Haskell. Scott Walck shows how to use Haskell’s type system to check that your code makes sense. Walck explains Newtonian mechanics and electromagnetic theory, including how to describe and calculate electric and magnetic fields.
Author: Scott Walck
Publisher: No Starch Press
Date: January 2023
Audience: People interested in physics
Category: Other Languages and Mathematics
- Encode vectors, derivatives, integrals, scalar fields, vector fields, and differential equations
- Express fundamental physical principles using the logic of Haskell’s type system to clarify Newton’s second law, Coulomb’s law, the Biot-Savart law, and the Maxwell equations
- Use higher-order functions to express numerical integration and approximation methods, such as the Euler method and the finite-difference time-domain (FDTD) method
- Create graphs, models, and animations of physical scenarios like colliding billiard balls, waves in a guitar string, and a proton in a magnetic field
For recommendations of functional programming books see First Class Functional Programming Books in our Programmer's Bookshelf section.
For more Book Watch just click.
Book Watch is I Programmer's listing of new books and is compiled using publishers' publicity material. It is not to be read as a review where we provide an independent assessment. Some, but by no means all, of the books in Book Watch are eventually reviewed.
To have new titles included in Book Watch contact BookWatch@i-programmer.info
Follow @bookwatchiprog on Twitter or subscribe to I Programmer's Books RSS feed for each day's new addition to Book Watch and for new reviews.