Swipe to navigate through the chapters of this book
Three hands-on computational problems for students are presented.Each problem is related to the overall topic of simulation, and is organized around five specific lab programming assignments. The coding examples and problem statements are presented in the Python 2 language, along with the Tk and PIL libraries, but any comparable system for code development could be substituted with minimal additional overhead. Supporting data files, demos, and practice exercises are also available from the book's companion website. The first problem simulates a one-dimensional random walk including analysis of results and predictive capabilities. The second problem simulates two-dimensional projectile motion including gravity, air resistance, and wind. The third problem simulates one-dimensional controlled descent with gravity, and suggests automating both the interactive and discovery aspects of the landing problem. Concepts, skills, and applications are carefully sequenced for ease of understanding, rapid feedback, and differentiated progression for any level of prior coding experience, including absolute beginners.