Zombies
If I have to explain what differential equations are, I always use the zombie apocalypse as an example. People seem to understand that better than the popular Lotka-Volterra equations modeling predator-prey dynamics, despite the fact that the zombie equations of Munz et al. are much more complicated. Well, to be eaten alive by an undead is just much more scary than being eaten by, say, a lion.
Both the Lotka-Volterra and the Munz models constitute a system of nonlinear coupled differential equations for which no analytical solutions exist. We thus have to solve these equations numerically, which is possible, for example, by pylab.
The basic code to solve the Munz model is simple and short:
The situation in Peaceville is discouraging. People are doomed:
Do we stand any chance at all against zombies? But of course we do! With the right spirit we fight them back and eliminate them from the face of the earth: 😉
What makes the difference is the resistance the people in Peaceville and Berserkhill offer:
What do we learn from that? Even apparently lost fights can be won by determination.