CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
AllenDowney

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: AllenDowney/ModSimPy
Path: blob/master/chapters/chap12.py
Views: 531
1
from modsim import *
2
3
def calc_total_infected(results, system):
4
s_0 = results.s[0]
5
s_end = results.s[system.t_end]
6
return s_0 - s_end
7
8
9