Skip to content

Commit

Permalink
fix typo in mock moment assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWAyers committed Jan 16, 2024
1 parent f962955 commit 2d46900
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/x4_mocked.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@
"\n",
" # compute wave-function\n",
"\n",
" ### START YOU CODE HERE\n",
" ### START YOUR CODE HERE\n",
" value = np.sqrt(2/a)*np.sin(np.pi*x*n/a)\n",
" ### END YOUR CODE HERE\n",
"\n",
"\n",
" # set wave-function values out of the box equal to zero\n",
"\n",
" ### START YOU CODE HERE\n",
" ### START YOUR CODE HERE\n",
" if hasattr(x, \"__iter__\"):\n",
" value[np.logical_or(x>a, x<0)] = 0\n",
" elif x<0 or x>a:\n",
Expand Down

0 comments on commit 2d46900

Please sign in to comment.