Skip to content

Commit

Permalink
Order code terms to match order of equation terms (ProjectPythia#477)
Browse files Browse the repository at this point in the history
Reverse the order of the 2nd and 3rd terms in the code corresponding to
the finite difference estimate of the 2nd derivative of a function to
match the order of the terms in the equation.
chuckwondo authored Jun 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 6ef78db commit 444fee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/numpy/numpy-broadcasting.ipynb
Original file line number Diff line number Diff line change
@@ -587,7 +587,7 @@
"metadata": {},
"outputs": [],
"source": [
"2 * a[1:-1] - a[:-2] - a[2:]"
"2 * a[1:-1] - a[2:] - a[:-2]"
]
},
{

0 comments on commit 444fee9

Please sign in to comment.