None Notebook

This notebook contains material from nbpages by Jeffrey Kantor (jeff at nd.edu). The text is released under the CC-BY-NC-ND-4.0 license. The code is released under the MIT license.

< 2.0 Usage | Contents | Tag Index | 2.2 Examples >

Open in Colab

Download

2.1 Tagging

2.1.1 Tagging cells

  differential-equations   SIR-model   compartmental-model

2.1.1.1 SIR model without vital dynamics

The Susceptible-Infectious-Recovered (SIR) model is an example of a compartmental model that is widely used to forecast the progress of disease epidemics.

\begin{align} \frac{dS}{dt} & = -\frac{\beta I S}{N} \\ \frac{dI}{dt} & = \frac{\beta I S}{N} - \gamma I \\ \frac{dR}{dt} & = \gamma I \end{align}

Where the basic reproduction number $R_0 = \frac{\beta}{\gamma}$

  scipy.integrate.solve_ivp   differential-equations

2.1 Special formatting for special tags

  home-activity   differential-equations
Home Activity:
  class-activity
Class Activity:
  important-note
Important Note:

2.1.1 Tagging solutions in code cells

For teaching purposes, it is often useful to selecting remove code from cells a

  exercise

2.1.1.1 Exercise 1.

In the following cell write a function that returns the square of a number.

  exercise

< 2.0 Usage | Contents | Tag Index | 2.2 Examples >

Open in Colab

Download