Skip to content

Commit

Permalink
Merge pull request #73 from davidrpugh/hotfix-examples-notebook
Browse files Browse the repository at this point in the history
Hotfix for slight notebook issues raised by @jstac.
  • Loading branch information
jstac committed Aug 31, 2014
2 parents 44acca3 + 580f932 commit a2c6bf4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/solving_initial_value_problems.ipynb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:29b1a0f602cce2181b458fce33ea9e9d30b154e221b2e1b1a8361f04e6f3c26d"
"signature": "sha256:97c5464497923c38027b39772d5fd3274298becf3470be3a6c6eea6626287eec"
},
"nbformat": 3,
"nbformat_minor": 0,
Expand All @@ -13,9 +13,9 @@
"metadata": {},
"source": [
"<center>\n",
"#Solving initial value problems (IVPs) in `quantecon`\n",
"# Solving initial value problems (IVPs) in `quantecon`\n",
"\n",
"## David R. Pugh"
"## David R. Pugh\n"
]
},
{
Expand Down Expand Up @@ -48,7 +48,7 @@
"\\textbf{y}'= \\textbf{f}(t ,\\textbf{y}) \\tag{1.1}\n",
"\\end{equation}\n",
"\n",
"where $\\textbf{f}:[t_0,\\infty) \\times \\mathbb{R}^n\\rightarrow\\mathbb{R}^n$. In the case where $n=1$, then equation 1.1 reduces to a single ODE; when $n>1$, equation 1.1 defines a system of ODEs. ODEs are one of the most basic examples of functional equations: the solution to equation 1.1 is a function $\\textbf{y}(t): D \\subset \\mathbb{R}\\rightarrow\\mathbb{R}^n$. \n",
"where $\\textbf{f}:[t_0,\\infty) \\times \\mathbb{R}^n\\rightarrow\\mathbb{R}^n$. In the case where $n=1$, then equation 1.1 reduces to a single ODE; when $n>1$, equation 1.1 defines a system of ODEs. ODEs are one of the most basic examples of functional equations: a solution to equation 1.1 is a function $\\textbf{y}(t): D \\subset \\mathbb{R}\\rightarrow\\mathbb{R}^n$. There are potentially an infinite number of solutions to the ODE defined in equation 1.1. In order to reduce the number of potentially solutions, we need to impose a bit more structure on the problem. \n",
"\n",
"## Initial value problems (IVPs)\n",
"An [initial value problem (IVP)](http://en.wikipedia.org/wiki/Initial_value_problem) has the form\n",
Expand All @@ -65,7 +65,7 @@
"[Finite-difference methods](http://en.wikipedia.org/wiki/Finite_difference_method) are perhaps the most commonly used class of numerical methods for approximating solutions to IVPs. The basic idea behind all finite-difference methods is to construct a difference equation \n",
"\n",
"\\begin{equation}\n",
"\\textbf{y}(t_i)'= \\textbf{f}(t_i ,\\textbf{y}(t_i)) \\tag{1.3}\n",
"\\frac{\\textbf{y}(t_i + h) - \\textbf{y}_i}{h} \\approx \\textbf{y}'(t_i) = \\textbf{f}(t_i ,\\textbf{y}(t_i)) \\tag{1.3}\n",
"\\end{equation}\n",
"\n",
"which is \"similar\" to the differential equation at some grid of values $t_0 < \\dots < t_N$. Finite-difference methods then \"solve\" the original differential equation by finding for each $n=0,\\dots,N$ a value $\\textbf{y}_n$ that approximates the value of the solution $\\textbf{y}(t_n)$.\n",
Expand Down

0 comments on commit a2c6bf4

Please sign in to comment.