Skip to content

Commit 3e66ab4

Browse files
committed
Updating chapters
1 parent 7c4ecf7 commit 3e66ab4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

chapters/chap11.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def update_func(t, state, system):
2626
def plot_results(S, I, R):
2727
S.plot(style='--', label='Susceptible')
2828
I.plot(style='-', label='Infected')
29-
R.plot(style=':', label='Resistant')
29+
R.plot(style=':', label='Recovered')
3030
decorate(xlabel='Time (days)',
3131
ylabel='Fraction of population')
3232

chapters/chap22.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@
987987
"id": "sustained-slide",
988988
"metadata": {},
989989
"source": [
990-
"Inside the draw function, should use `decorate` to set the limits of the $x$ and $y$ axes.\n",
990+
"Inside the draw function, you should use `decorate` to set the limits of the $x$ and $y$ axes.\n",
991991
"Otherwise `matplotlib` auto-scales the axes, which is usually not what you want.\n",
992992
"\n",
993993
"Now we can run the animation like this:\n",
@@ -1447,7 +1447,7 @@
14471447
"name": "python",
14481448
"nbconvert_exporter": "python",
14491449
"pygments_lexer": "ipython3",
1450-
"version": "3.10.6"
1450+
"version": "3.10.13"
14511451
}
14521452
},
14531453
"nbformat": 4,

chapters/chap22.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
def make_system(params):
2323

24-
# convert angle to degrees
24+
# convert angle to radians
2525
theta = deg2rad(params.angle)
2626

2727
# compute x and y components of velocity

0 commit comments

Comments
 (0)