Skip to content

Commit 0214d35

Browse files
committed
change wording
1 parent 5b5b3d4 commit 0214d35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lectures/numpy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,11 +1446,11 @@ F.plot(ax)
14461446
:label: np_ex4
14471447
```
14481448

1449-
Recall that [broadcasting](broadcasting) in Numpy can help us conduct element-wise operations on arrays with different numbers of dimensions without using `for` loops.
1449+
Recall that [broadcasting](broadcasting) in Numpy can help us conduct element-wise operations on arrays with different number of dimensions without using `for` loops.
14501450

14511451
In this exercise, try to use a `for` loop to replicate the result of the following code.
14521452

1453-
Meanwhile, observe the time difference between broadcasting and the `for` loop you implement.
1453+
Meanwhile, compare the speeds of broadcasting and the `for` loop you implement.
14541454

14551455
```{code-cell} python3
14561456
import quantecon as qe
@@ -1501,7 +1501,7 @@ qe.toc()
15011501

15021502
Note that the `for` loop takes much longer than the broadcasting operation.
15031503

1504-
Compare your answer with the output of broadcasting
1504+
Compare the results to check your answer
15051505

15061506
```{code-cell} python3
15071507
---

0 commit comments

Comments
 (0)