Homework repository for MATH564 MATH MODELING @ UNC-Chapel Hill
I'll probably extend this repo to a solution manual + concise notes to the book Mathematical Models in Biology.
math-bio
│ .gitignore
│ hw-template.cls -----------------template
│ new_probs.ps1 -------------------powershell script, auto-create hw folder
│ README.md
│
├─hw1 ------------------------------homework directories
│ │ hw1.pdf ----------------------compiled pdf
│ │ hw1.tex ----------------------.tex source file
│ │ hw1_plot.py ------------------python script for plotting
│ ├─sections ----------------------subfiles corresponding to hw problems
│ │ prob1.tex
│ │ prob2.tex
│ │ ...
│ └─fig ---------------------------graphs plotted by hw[0-9]_plot.py
│ fig2(a).pdf
│ ...
├─hw2
└─...
The multiple .tex
files are compiled into 1 using package subfile
.
Within each hw[0-9]
directory, there will be a fig
folder storing all the figures,
a sections
folder containing all the subfiles
- Inline mode, start with an
$
, end with an$
($...$
). - Display mode, start with two
$$
, end with two$$
($$...$$
)
\(...\)
and \[...\]
can also start inline mode math and display mode math, respectively. We recommend using $...$
for inline mode delimiter and \[...\]
for displaymode delimiter, for clearer distinction.
- It is straight-forward for basic arithmetic operations. E.g.
+
,-
*
/
,a^b
,a_b
will give - already defined many useful symbols, macros, (or functions) to typeset the formulations. They start with
\
, such as\LaTeX
is for the latex symbol. In some typeset functions you can give them parameters. E.g.\frac{1}{3}
typesets one over three, where the thing within the first{}
is nominator, and the thing within the second{}
is denominator. {} also helps group thing within it together. Consider the difference betweena_b+1
() anda_{b+1}
()
A useful environment for aligning equations. Used inside a display mode math snippet. The &
determines where the equations align. This environment, unlike
the traditional equation
and align
environment, will not produce a number
corresponding to the equation, and it cannot be labelled.
$$
\begin{aligned}
y &= x^2 + 3x + 2 \\
&= (x+1)(x+2)
\end{aligned}
$$
For more information about aligning equations, see this nice document provided by OverLeaf.
code | effect | |
---|---|---|
derivative | \deriv{y} , \deriv[t]{N} , \derivlong{x^2+3x+2} |
, , |
partial derivative | \pderiv{f}{x} , \pderivlong{x^2+3x+2}{x} |
, |
- homework 1
- homework 2
- homework 3
- homework 4
- Improve PowerShell script: directory creation automation
- Improve PowerShell script:
.tex
file creation improvement - Add MakeFile and Unix Shell version of the PS1 script (or just use bash, since we have WSL for windows)
- Improve the options part in
hw-template.cls
Suggestions are welcome!