Skip to content

Commit 64dd2ba

Browse files
authored
'fin diff'
1 parent 8acc636 commit 64dd2ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

math/note05.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"\n",
169169
"$$ \\frac{d\\psi}{dx} \\approx \\frac{\\psi(x_{i+1}) - \\psi(x_{i-1})}{2h} $$\n",
170170
"\n",
171-
"This operation can be represented by a matrix. For $n = 5$ grid points, with improved boundary handling, the first derivative matrix $D_1$ using the centered difference method looks like:\n",
171+
"- This operation can be represented by a matrix. For $n = 5$ grid points, with improved boundary handling, the first derivative matrix $D_1$ using the centered difference method looks like:\n",
172172
"\n",
173173
"$$\n",
174174
"D_1 = \\frac{1}{2h}\n",
@@ -179,7 +179,9 @@
179179
"0 & 0 & -1 & 0 & 1 \\\\\n",
180180
"0 & 0 & 1 & -4 & 3\n",
181181
"\\end{pmatrix}\n",
182-
"$$\n"
182+
"$$\n",
183+
"\n",
184+
"- The coefficients $-3,4,-1$ come from applying a Taylor series expansion to derive a higher-order accurate one-sided difference approximation for the derivative at the boundary point. "
183185
]
184186
},
185187
{

0 commit comments

Comments
 (0)