Skip to content

Commit 90b2b06

Browse files
committed
added a comment
1 parent 5cb66e3 commit 90b2b06

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pynumdiff/finite_difference/_finite_difference.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def _finite_difference(x, dt, num_iterations, order):
3333
x_hat = utility.integrate_dxdt_hat(dxdt_hat, dt=1) # estimate new x_hat by integrating derivative
3434
# We can skip dividing by dt here and pass dt=1, because the integration multiplies dt back in.
3535
# 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.
3637

3738
if order == 1:
3839
dxdt_hat[:-1] = np.diff(x_hat)

0 commit comments

Comments
 (0)