Skip to content

Commit 6f3a3a5

Browse files
authored
Update content/numpy.rst
1 parent 6299b28 commit 6f3a3a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/numpy.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,10 @@ Additional exercises
465465
5. Let's test those functions with few negative and positive values::
466466

467467
a = np.array([-3.3, -2.5, -1.5, -0.75, -0.5, 0.5, 0.75, 1.5, 2.5, 3])
468-
np.round(a) // [-3. -2. -2. -1. -0. 0. 1. 2. 2. 3.]
469-
np.ceil(a) // [-3. -2. -1. -0. -0. 1. 1. 2. 3. 3.]
470-
np.floor(a) // [-4. -3. -2. -1. -1. 0. 0. 1. 2. 3.]
471-
np.trunc(a) // [-3. -2. -1. -0. -0. 0. 0. 1. 2. 3.]
468+
np.round(a) # [-3. -2. -2. -1. -0. 0. 1. 2. 2. 3.]
469+
np.ceil(a) # [-3. -2. -1. -0. -0. 1. 1. 2. 3. 3.]
470+
np.floor(a) # [-4. -3. -2. -1. -1. 0. 0. 1. 2. 3.]
471+
np.trunc(a) # [-3. -2. -1. -0. -0. 0. 0. 1. 2. 3.]
472472

473473

474474
6. One solution is::

0 commit comments

Comments
 (0)