This text is designed for a one- or two-semester undergraduate course, or a beginning graduate course. It surveys most modern computational physics topics from a computational science point of view that emphasizes how physics, mathematics, and computer science are combined to solve problems. The approach is learning by doing, with problems, exercises, model Python programs, and visualizations for most every topic. (Codes are also available in other computer languages.)
Listed codes are assigned numbers and are generally provided at the end of each chapter. They are provided as numbered in the book (2.1, 2.2, ... 3.1, ...).
Embedded codes are listed completely in the flow of a chapter's narrative. Embedded listings are provided as Chapter#mSection#. So 2m4 is a Chapter 2 code embedded in Section 4. If multiple codes are embedded in a section, a lower case alpha character is appended. For instance, 12m5a-12m5i are 9 codes in Chapter 12 Section 5.
Visualization codes are listed in the flow of a chapter's narrative. Visualizations are provided as Chapter#vSection#. So 13v5 is a Chapter 13 visualization in Section 5.
Supplemental codes are listed in the flow of a chapter's narrative. Supplemental codes are provided as Chapter#sSection#. So 19s3 is a Chapter 19 supplemental code in Section 3.