From 337cf38fa46c5b20fa15c70813702ff3664df05c Mon Sep 17 00:00:00 2001 From: bastonero Date: Thu, 31 Aug 2023 10:31:41 +0000 Subject: [PATCH] Docs: fix second order derivative formula --- docs/source/3_iraman.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/3_iraman.ipynb b/docs/source/3_iraman.ipynb index 6a07ef8..7dc69e7 100644 --- a/docs/source/3_iraman.ipynb +++ b/docs/source/3_iraman.ipynb @@ -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",