Skip to content

Commit

Permalink
Docs: fix second order derivative formula
Browse files Browse the repository at this point in the history
  • Loading branch information
bastonero committed Aug 31, 2023
1 parent 134e117 commit 337cf38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/3_iraman.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"The same theory we saw in previous tutorials applies here. Note that for computing _second order_ derivatives of forces we need a slightly different formula:\n",
"\n",
"\\begin{equation}\n",
" \\left . \\frac{\\partial f(x)}{\\partial x} \\right|_{x=0}\n",
" \\left . \\frac{\\partial^2 f(x)}{\\partial x^2} \\right|_{x=0}\n",
" =\n",
" \\frac{1}{h^2}\n",
" \\left [\n",
" f(h) -2f(0) +f(-2h)\n",
" f(h) -2f(0) +f(-h)\n",
" \\right ]\n",
" + \\mathcal{O}(h^2)\n",
"\\end{equation}\n",
Expand Down

0 comments on commit 337cf38

Please sign in to comment.