Merge pull request #57 from MikeBloom914/patch-1

Update with corrected answer #53
This commit is contained in:
Nicolas P. Rougier 2018-02-21 18:45:51 +01:00 committed by GitHub
commit 6c26468543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1113,8 +1113,8 @@
},
"outputs": [],
"source": [
"Z = np.arange(10, dtype=np.int32)\n",
"Z = Z.astype(np.float32, copy=False)\n",
"Z = np.arange(10, dtype=np.float32)\n",
"Z = Z.astype(np.int32, copy=False)\n",
"print(Z)"
]
},

View File

@ -527,8 +527,8 @@ print(D)
```python
Z = np.arange(10, dtype=np.int32)
Z = Z.astype(np.float32, copy=False)
Z = np.arange(10, dtype=np.float32)
Z = Z.astype(np.int32, copy=False)
print(Z)
```