commit 3df263370df20f7b50d4645992cb41b8bd06f3af
parent 60b0db63ea3bc9d669eb28e3312c20fdc9d7cba7
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 11 Mar 2024 15:17:54 +0100
Fix the comment on the Taylor expansion of quadratic extrapolation
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/swf_tabulation.c b/src/swf_tabulation.c
@@ -52,7 +52,7 @@ linear_interpolation
return x;
}
-/* H(x) = H(x0) + H'(x0)*(x-x0) + H"(x0)*(x-x0)^2
+/* H(x) = H(x0) + H'(x0)*(x-x0) + 0.5*H"(x0)*(x-x0)^2
* x = x0 + (-H'(x0) +/-) sqrt(H'(x0)^2 - 2*H"(x0)*(H(x0) - H(x)))) / H"(x0)) */
static INLINE double
quadratic_extrapolation