Skip to content

Commit afbfb22

Browse files
authored
Update lab06.ipynb
added 1/2 to the g''(a) term of the taylor expansion of g(x)
1 parent a64c999 commit afbfb22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/labs/1_Color_Labs/5_Edge_Detection/lab06.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@
266266
"which is the same symmetric difference formula you've seen before.\n",
267267
"To approximate the second derivative $g''(a)$, use the estimations\n",
268268
"\\begin{align*}\n",
269-
" g(a+h) &\\approx g(a) + \\frac{g'(a)}{1}((a+h)-a) + \\frac{g''(a)}{1\\cdot 2}((a+h)-a)^2 = g(a) + g'(a)h + g''(a)h^2 \\\\ \n",
270-
" g(a-h) &\\approx g(a) + \\frac{g'(a)}{1}((a-h)-a) + \\frac{g''(a)}{1\\cdot 2}((a-h)-a)^2 = g(a) - g'(a)h + g''(a)h^2. \\\\ \n",
269+
" g(a+h) &\\approx g(a) + \\frac{g'(a)}{1}((a+h)-a) + \\frac{g''(a)}{1\\cdot 2}((a+h)-a)^2 = g(a) + g'(a)h + \\frac{1}{2} g''(a)h^2 \\\\ \n",
270+
" g(a-h) &\\approx g(a) + \\frac{g'(a)}{1}((a-h)-a) + \\frac{g''(a)}{1\\cdot 2}((a-h)-a)^2 = g(a) - g'(a)h + \\frac{1}{2} g''(a)h^2. \\\\ \n",
271271
"\\end{align*}\n",
272272
" \n",
273273
"<br>"

0 commit comments

Comments
 (0)