Merge pull request #99 from martin-lee07/work

fix No.25
This commit is contained in:
Nicolas P. Rougier 2020-02-18 15:11:45 +01:00 committed by GitHub
commit 814170d1e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ np.nan in set([np.nan])
#### 24. Multiply a 5x3 matrix by a 3x2 matrix (real matrix product) (★☆☆)
`hint:`
#### 25. Given a 1D array, negate all elements which are between 3 and 8, in place. (★☆☆)
`hint: >, <=`
`hint: >, <`
#### 26. What is the output of the following script? (★☆☆)
```python
# Author: Jake VanderPlas

View File

@ -205,7 +205,7 @@ Z = np.ones((5,3)) @ np.ones((3,2))
print(Z)
```
#### 25. Given a 1D array, negate all elements which are between 3 and 8, in place. (★☆☆)
`hint: >, <=`
`hint: >, <`
```python
# Author: Evgeni Burovski

View File

@ -211,7 +211,7 @@ print(Z)
# Author: Evgeni Burovski
Z = np.arange(11)
Z[(3 < Z) & (Z <= 8)] *= -1
Z[(3 < Z) & (Z < 8)] *= -1
print(Z)
```
#### 26. What is the output of the following script? (★☆☆)

View File

@ -266,7 +266,7 @@ print(Z)
Given a 1D array, negate all elements which are between 3 and 8, in place. (★☆☆)
< h25
hint: >, <=
hint: >, <
< a25
# Author: Evgeni Burovski