Skip to content

Commit 085591a

Browse files
committed
Edits
1 parent d06e4db commit 085591a

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

book/book.tex

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ \section{Constant growth model}
20152015

20162016
\section{Simulation}
20172017

2018-
Our simulation will start with the observed population in 1950, \py{p0}, and add \py{annual_growth} each year. To store the results, we'll use a \py{TimeSeries} object:
2018+
Our simulation will start with the observed population in 1950, \py{p_0}, and add \py{annual_growth} each year. To store the results, we'll use a \py{TimeSeries} object:
20192019

20202020
\index{TimeSeries}
20212021

@@ -2978,7 +2978,7 @@ \section{Differential equations in SymPy}
29782978
%
29792979
\[ f{\left (t \right )} = C_{1} \exp(\alpha t) \]
29802980
%
2981-
This is the {\bf general solution}, which still contains an unspecified constant, $C_1$. To get the {\bf particular solution} where $f(0) = p_0$, we substitute \py{p0} for \py{C1}. First, we have to create two more symbols:
2981+
This is the {\bf general solution}, which still contains an unspecified constant, $C_1$. To get the {\bf particular solution} where $f(0) = p_0$, we substitute \py{p_0} for \py{C1}. First, we have to create two more symbols:
29822982

29832983
\index{general solution}
29842984
\index{particular solution}
@@ -4131,8 +4131,7 @@ \section{Sweeping beta}
41314131

41324132
\end{itemize}
41334133

4134-
% TODO: Consider using Greek letters in the code and figures. But in that case, also
4135-
% figure out how to get them through LaTeX intact.
4134+
% TODO: Make the gamma symbol appear in the line below and in the figures.
41364135

41374136
If the value of \py{gamma} is \py{0.25}, the value of \py{label} is the string \py{'gamma = 0.25'}.
41384137

@@ -5570,8 +5569,6 @@ \section{Computational tools}
55705569
k3 = 1e-05)
55715570
\end{python}
55725571

5573-
\py{Params} objects are similar to \py{System} and \py{State} objects; in fact, all three have the same capabilities. I have given them different names to document the different roles they play.
5574-
55755572
Chapter~\ref{chap18} also introduces \py{run_ode_solver} which computes numerical solutions to differential equations.
55765573

55775574
\py{run_ode_solver} uses a slope function, which is similar to an update function:
@@ -6006,10 +6003,9 @@ \section{Drag force}
60066003
\section{Implementation}
60076004
\label{penny_drag}
60086005

6009-
As the number of system parameters increases, and as we need to do more work to compute them, we will find it useful to define a \py{Params} object to contain the quantities we need to make a \py{System} object.
6006+
As the number of system parameters increases, and as we need to do more work to compute them, we will find it useful to define a \py{Params} object to contain the quantities we need to make a \py{System} object. \py{Params} objects are similar to \py{System} and \py{State} objects; in fact, all three have the same capabilities. I have given them different names to document the different roles they play.
60106007

6011-
% TODO: If we take Params out of Chapter 18, we have to introduce it here
6012-
%\py{Params} objects are similar to \py{System} and \py{State} objects; in fact, all three have the same capabilities. I have given them different names to document the different roles they play.
6008+
% TODO: This is not actually the first use of Params
60136009

60146010
\index{Params object}
60156011

@@ -6321,8 +6317,8 @@ \section{Simulating baseball flight}
63216317
def drag_force(V, system):
63226318
rho, C_d, area = system.rho, system.C_d, system.area
63236319

6324-
mag = rho * V.mag**2 * C_d * area / 2
6325-
direction = -V.hat()
6320+
mag = -rho * V.mag**2 * C_d * area / 2
6321+
direction = V.hat()
63266322
f_drag = direction * mag
63276323
return f_drag
63286324
\end{python}
@@ -6630,9 +6626,17 @@ \section{Finding the range}
66306626
\index{ModSimSeries}
66316627

66326628
For these parameters, the optimal angle is about \SI{42}{\degree}, which yields a range of \SI{103}{\meter}.
6629+
<<<<<<< HEAD
6630+
6631+
\py{maximize} uses a golden section search, which you can read about at \url{http://modsimpy.com/minimize}).
6632+
6633+
=======
66336634

66346635
\py{maximize} uses a golden section search, which you can read about at \url{http://modsimpy.com/minimize}).
66356636

6637+
>>>>>>> 4c199a00d3ede84f44f287deaa12a8413f4efa6b
6638+
% TODO: update this link to point to Golden section search
6639+
66366640

66376641
\section{Finishing off the problem}
66386642

0 commit comments

Comments
 (0)