Skip to content

Commit 159fd76

Browse files
committed
typo
1 parent fe4e998 commit 159fd76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pynumdiff/finite_difference/_finite_difference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _finite_difference(x, dt, num_iterations, order):
2828
elif order == 4:
2929
dxdt_hat[2:-2] = (8*(x_hat[3:-1] - x_hat[1:-3]) - x_hat[4:] + x_hat[:-4])/12 # fourth-order center-difference
3030
dxdt_hat[1] = (x_hat[2] - x_hat[0])/2
31-
dxdt_hat[-2] = (x_hat[-1] - x_hat[-3])/2 # use second-order formula for next-to-endpionts so as not to amplify noise
31+
dxdt_hat[-2] = (x_hat[-1] - x_hat[-3])/2 # use second-order formula for next-to-endpoints so as not to amplify noise
3232
dxdt_hat[0] = x_hat[1] - x_hat[0]
3333
dxdt_hat[-1] = x_hat[-1] - x_hat[-2] # use first-order endpoint formulas so as not to amplify noise. See #104
3434

0 commit comments

Comments
 (0)