Merge pull request #84 from quq99/master

fix issue about problem 92 TypeError
This commit is contained in:
Nicolas P. Rougier 2019-07-24 10:45:29 +02:00 committed by GitHub
commit 33ee5ada7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1938,7 +1938,7 @@
"source": [
"# Author: Ryan G.\n",
"\n",
"x = np.random.rand(5e7)\n",
"x = np.random.rand(int(5e7))\n",
"\n",
"%timeit np.power(x,3)\n",
"%timeit x*x*x\n",

View File

@ -1091,7 +1091,7 @@ print(R)
```python
# Author: Ryan G.
x = np.random.rand(5e7)
x = np.random.rand(int(5e7))
%timeit np.power(x,3)
%timeit x*x*x