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
2 changed files with 2 additions and 2 deletions

View File

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

View File

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