Skip to content

Commit

Permalink
Chap 5 updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziaeemehr committed Aug 11, 2024
1 parent fbc6e57 commit 95a0f0f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/examples/chap_05.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -72,7 +72,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand All @@ -85,7 +85,7 @@
"[2⋅cos(2⋅t), -2⋅sin(2⋅t)]"
]
},
"execution_count": 33,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -129,7 +129,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -152,7 +152,7 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -198,22 +198,24 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"$$\n",
"\\begin{align*}\n",
"\\frac{dR}{dt} &= \\frac{1}{0.02}(-R + S(P)) \\\\ \n",
"S(P) &= \\begin{cases}\n",
"\\frac{100P^2}{25 + P^2} & \\text{for } P \\geq 0 \\\\\n",
"0 & \\text{for } P < 0\n",
"\\end{cases} \\\\\n",
"\n",
"P(t) &= 20\\sin(2\\pi10t)\n",
"\\end{align*}\n",
"$$\n",
"\n",
"\n",
"where $R(0)=0, T=1, h=0.004$."
]
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -244,7 +246,7 @@
},
{
"cell_type": "code",
"execution_count": 45,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down

0 comments on commit 95a0f0f

Please sign in to comment.