We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cb66e3 commit 90b2b06Copy full SHA for 90b2b06
1 file changed
pynumdiff/finite_difference/_finite_difference.py
@@ -33,6 +33,7 @@ def _finite_difference(x, dt, num_iterations, order):
33
x_hat = utility.integrate_dxdt_hat(dxdt_hat, dt=1) # estimate new x_hat by integrating derivative
34
# We can skip dividing by dt here and pass dt=1, because the integration multiplies dt back in.
35
# No need to find integration constant until the very end, because we just differentiate again.
36
+ # Note that I also tried integrating with Simpson's rule here, and it seems to do worse.
37
38
if order == 1:
39
dxdt_hat[:-1] = np.diff(x_hat)
0 commit comments