These are the notes and code-along pages we use in class. Pages with multiple class meetings keep their materials together under one textbook module.
Getting started
Calculations, variables, vectors, graphs, loops, and decisions. Includes the complete downloadable R script from our introductory meetings.
Modeling change
Build an Euler simulation, compare it with the analytical solution, investigate time-step error, and model decay.
Textbook: Read Module 2.2, “Unconstrained Growth and Decay.”
Add carrying capacity to the growth model, interpret its balancing feedback, compare constrained and unconstrained trajectories, and answer threshold questions.
Textbook: Read Module 2.3, “Constrained Growth.”
Work through trout harvesting, bacterial growth, caffeine decay, and a constrained-growth challenge. Focus on choosing a model and using it to answer questions.
Interacting populations
Model two shark populations whose birth and competition flows depend on both species, then investigate equilibria and long-term behavior.
Textbook: Read Module 4.1, “Competition.”
Build a squirrel–hawk simulation with two coupled populations, compare their peak times, and examine the predator-versus-prey trajectory.
Textbook: Read Module 4.2, “Predator–Prey Models.”
Model infection and recovery as transfers between three groups, verify conservation, find the outbreak peak, and compare transmission rates.
Textbook: Read Module 4.3, “Modeling the Spread of SARS—Containing Emerging Disease.”
Checking our simulations
Locate errors in data, assumptions, implementation, and computation. Practice normalized notation, precision, and magnitude; measure absolute and relative error; investigate floating-point arithmetic; and test how time-step size changes an Euler result.
Textbook: Read Module 5.2, “Errors.”
See why an Euler update follows the current slope, compare one large step with several smaller steps, and weigh numerical error against the number of calculations.
Textbook: Read Module 6.2, “Euler’s Method.”