Modeling and Simulation in Python

by Allen Downey

DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

Modeling and Simulation in Python is an introduction to physical modeling using a computational approach. It is organized in three parts:
- The first part presents discrete models, including a bikeshare system and world population growth.
- The second part introduces first-order systems, including models of infectious disease, thermal systems, and pharmacokinetics.
- The third part is about second-order systems, including mechanical systems like projectiles, celestial mechanics, and rotating rigid bodies.

Taking a computational approach makes it possible to work with more realistic models than what you typically see in a first-year physics class, with the option to include features like friction and drag.

Python is an ideal programming language for this material. It is a good first language for people who have not programmed before, and it provides high-level data structures that are well-suited to express solutions to the problems we are interested in.

This open book is licensed under a Creative Commons License (CC BY). You can download Modeling and Simulation in Python ebook for free in PDF format (2.3 MB).

Table of Contents

Preface
 
xi
Chapter 1
Modeling
1
Chapter 2
Bike share
7
Chapter 3
Iterative modeling
19
Chapter 4
Sweeping parameters
27
Chapter 5
World population
35
Chapter 6
Modeling growth
43
Chapter 7
Quadratic growth
51
Chapter 8
Prediction
59
Chapter 9
Analysis
65
Chapter 10
Case studies
75
Chapter 11
Epidemiology
85
Chapter 12
Optimization
97
Chapter 13
Sweeping two parameters
107
Chapter 14
Analysis
115
Chapter 15
Heat
123
Chapter 16
Mixing
131
Chapter 17
Pharmacokinetics
141
Chapter 18
The glucose model
149
Chapter 19
Case studies
157
Chapter 20
Projectiles
165
Chapter 21
Air resistance
171
Chapter 22
Projectiles in 2-D
177
Chapter 23
Optimization
187
Chapter 24
Rotation
193
Chapter 25
Torque
201
Chapter 26
Case studies
211
Index
 
223

Book Details

Subject
Computer Science
Publisher
Green Tea Press
Published
2019
Pages
247
Edition
1
Language
English
PDF Size
2.3 MB
License
CC BY

Related Books

Proceedings of the International Conference on Social Modeling and Simulation, plus Econophysics Colloquium 2014
The proceedings of the international conference "SMSEC2014", a joint conference of the first "Social Modeling and Simulations" and the 10th "Econophysics Colloquium", held in Kobe in November 2014 with 174 participants, are gathered herein. Cutting edge scientific researches on various social phenomena are reviewed. Ne...
Physical Modeling in MATLAB
Modeling and simulation are powerful tools for explaining the world, making predictions, designing things that work, and making them work better. Learning to use these tools can be difficult; this book is my attempt to make the experience as enjoyable and productive as possible. By reading this book - and working on the exercises - you will lear...
Innovations in Derivatives Markets
This book presents 20 peer-reviewed chapters on current aspects of derivatives markets and derivative pricing. The contributions, written by leading researchers in the field as well as experienced authors from the financial industry, present the state of the art in: - Modeling counterparty credit risk: credit valuation adjustment, debit valuation a...
Programming for Computations - Python
This book presents computer programming as a key method for solving mathematical problems. This second edition of the well-received book has been extensively revised: All code is now written in Python version 3.6 (no longer version 2.7). In addition, the two first chapters of the previous edition have been extended and split up into five new chapte...
Excel Data Analysis
This book offers a comprehensive and readable introduction to modern business and data analytics. It is based on the use of Excel, a tool that virtually all students and professionals have access to. The explanations are focused on understanding the techniques and their proper application, and are supplemented by a wealth of in-chapter and end-of-c...
Transformation and Development
This book features various studies on democratization, transformation, political and economic development, and security issues in the Organization for Security and Cooperation in Europe (OSCE) geographical region and beyond. Written by experts and academics in the fields of human rights, security, transformation and development, particularly in pos...