Click on a chapter to download:
Chapter 2: Python programming for physicists
Chapter 3: Graphics and visualization
Chapter 4: Accuracy and speed
Chapter 5: Integrals and derivatives
Chapter 6: Solution of linear and nonlinear equations
Chapter 7: Fourier transforms
Chapter 8: Ordinary differential equations
Chapter 9: Partial differential equations
Chapter 10: Random processes and Monte Carlo methods
Chapter 11: Data science
He could have invested in a Python syntax highlighter. I use minted, myself, but I'm sure there are many alternatives.
https://websites.umich.edu/~mejn/cp2/exercises.html
By the way, I use typst now, so I don't have to worry about highlighting anymore!
In 2026, I don't want to do numerical programming in C. That was fine 30 years ago, but today, I expect to have garbage collection or to be able to multiply a matrix as A×B.
vectorcrumb•3d ago
braedonwatkins•3d ago
It definitely targets physics undergrads who have never programmed so if that's not you then you may feel friction during some chapters. If, like me, you are much more developed in programming than physics you might just want to do the exercises in the first few chapters to check your knowledge and move on to the good bits.
If you're looking for something more rigorous I would bet [Numerical Recipes](https://numerical.recipes/) is better (I haven't read it but I want to; see "busy").
redbluered•3d ago
It's a series of... numerical recipes. Nice descriptions of many numerical algorithms sufficient to use them.
It's not focused on physics. It's also not rigorous.
The Sussman / Wisdom reference is rigorous.
Why would you post about a book you haven't read?
braedonwatkins•2d ago