What are some recommended physics books for learning with code?

Click For Summary

Discussion Overview

The discussion centers around recommendations for physics books that incorporate coding, particularly with a focus on solving real-world problems using MATLAB. Participants express a desire for resources that include examples and thorough code, especially in the context of physical mathematics such as ordinary and partial differential equations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant seeks books that teach physics through coding, emphasizing the need for practical examples and the ability to visualize concepts in MATLAB.
  • Another participant recommends a computational physics text that, while written in Fortran, introduces pseudocode that can be adapted to MATLAB.
  • A different suggestion is made for "Computational Physics" by Mark Newman, which uses Python but is noted for its clarity and quality.
  • Another participant mentions a book on numerical methods related to mechanics of shells, which includes source codes in C/C++ and is available on a CD-ROM.

Areas of Agreement / Disagreement

Participants generally share a common interest in finding books that integrate coding with physics learning, but there are multiple recommendations and no consensus on a single best resource. Different programming languages are mentioned, indicating varied preferences.

Contextual Notes

Some recommendations involve texts that are not specifically written for MATLAB, which may require adaptation by the reader. The discussion does not resolve which book might be the most suitable for the original poster's needs.

Steve Drake
Messages
53
Reaction score
1
I am looking for recommendations of books that teach physics, with an emphasis on solving real-world problems with code.

I find I can only really fully grasp a concept if I can actually program it and visualize it in MATLAB, change variables and see what effect that has on the results.

So would anyone have recommendations of books that are accompanied with computer code? My language of choice is MATLAB but I can translate anything really to MATLAB, so the focus would be on lots of examples and thorough code.

It would be great if it went through all the important physical mathematics such as ODE's PDE's and their applications eg Electromag.. I just find book after book with the same equations written down but have no idea how to actually use them.

Thanks
 
Physics news on Phys.org
I can only recommend the text I used for computational physics. Our language was Matlab as well, but the text was written in Fortran. That doesn't particularly matter though, since they introduce the pseudocode first:

http://www.physics.purdue.edu/~hisao/book/
 
  • Like
Likes   Reactions: 1 person
Pythagorean said:
I can only recommend the text I used for computational physics. Our language was Matlab as well, but the text was written in Fortran. That doesn't particularly matter though, since they introduce the pseudocode first:

http://www.physics.purdue.edu/~hisao/book/

Thanks, I had a look at the first few examples and got them working in MATLAB. This is definitely the kind of thing I am after. I will pick up this book so I can actually understand what's going on now lol.

Any more suggestions along the lines of this would be great, thanks.
 
Steve Drake said:
I am looking for recommendations of books that teach physics, with an emphasis on solving real-world problems with code.

I find I can only really fully grasp a concept if I can actually program it and visualize it in MATLAB, change variables and see what effect that has on the results.

So would anyone have recommendations of books that are accompanied with computer code? My language of choice is MATLAB but I can translate anything really to MATLAB, so the focus would be on lots of examples and thorough code.

It would be great if it went through all the important physical mathematics such as ODE's PDE's and their applications eg Electromag.. I just find book after book with the same equations written down but have no idea how to actually use them.

Thanks

Here is a book in numerical methods related to mechanics of shells (with lots of commented ready-to-use source codes in C/C++ on applied CD-ROM):

https://www.amazon.com/dp/0646594044/?tag=pfamazon01-20
 
Last edited by a moderator:

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 9 ·
Replies
9
Views
13K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K