add difficulty

This commit is contained in:
bassbone
2021-06-11 23:14:29 +09:00
parent 22f47a6e0b
commit 8603114b95
7 changed files with 229 additions and 229 deletions

View File

@@ -212,7 +212,7 @@ Z[::2,1::2] = 1
print(Z)
< q20
Consider a (6,7,8) shape array, what is the index (x,y,z) of the 100th element?
Consider a (6,7,8) shape array, what is the index (x,y,z) of the 100th element? (★☆☆)
< h20
hint: np.unravel_index
@@ -323,7 +323,7 @@ Z/1/1
Z<Z>Z
< q28
What are the result of the following expressions?
What are the result of the following expressions? (★☆☆)
```python
np.array(0) / np.array(0)
np.array(0) // np.array(0)
@@ -572,7 +572,7 @@ Z['x'], Z['y'] = np.meshgrid(np.linspace(0,1,5),
print(Z)
< q47
Given two arrays, X and Y, construct the Cauchy matrix C (Cij =1/(xi - yj))
Given two arrays, X and Y, construct the Cauchy matrix C (Cij =1/(xi - yj)) (★★☆)
< h47
hint: np.subtract.outer