Skip to content

Commit e60aa15

Browse files
committed
More assignment refinements
1 parent 7bd205c commit e60aa15

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

numpy/broadcast-translation/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Translation with broadcasting
22

3+
NumPy broadcasting is powerful tool for dealing with different, but compatible
4+
shape arrays.
5+
36
File [points_circle.dat](points_circle.dat) contains x, y coordinates along a
47
circle. Translate all the coordinates with some vector e.g. (2.1, 1.1). Plot
58
both the original and translated points in order to see the effect of

numpy/finite-difference/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## Finite-difference
22

3+
Vectorization is crucial for obtaining good performance with NumPy.
4+
35
Derivatives can be calculated numerically with the finite-difference method
46
as:
57

numpy/integration/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ x'_i = (x_i + x_{i-1}) / 2
1717

1818
![img](https://quicklatex.com/cache3/09/ql_f124fd5c831e873c6abd41160fae2d09_l3.png)
1919

20-
Use the same interval as in the first exercise and investigate how much the
20+
Calculate the integral in the interval [0,π/2] and investigate how much the
2121
Riemann sum of **sin** differs from 1.0. Avoid `for` loops. Investigate also
2222
how the results changes with the choice of Δx.

0 commit comments

Comments
 (0)