Merge pull request #48 from chunjy92/master

fix spelling error; suggestion for an alternative answer
This commit is contained in:
Nicolas P. Rougier 2017-07-04 08:31:12 +02:00 committed by GitHub
commit cf241dd5da
4 changed files with 4 additions and 4 deletions

View File

@ -721,7 +721,7 @@
"metadata": {},
"source": [
"#### 39. Create a vector of size 10 with values ranging from 0 to 1, both excluded (★★☆) \n",
"(**hint**: np.linespace)"
"(**hint**: np.linspace)"
]
},
{

View File

@ -266,7 +266,7 @@ np.sqrt(-1) == np.emath.sqrt(-1)
#### 39. Create a vector of size 10 with values ranging from 0 to 1, both excluded (★★☆)
(**hint**: np.linespace)
(**hint**: np.linspace)

View File

@ -801,7 +801,7 @@
},
"outputs": [],
"source": [
"Z = np.linspace(0,1,12,endpoint=True)[1:-1]\n",
"Z = np.linspace(0,1,11,endpoint=False)[1:]\n",
"print(Z)"
]
},

View File

@ -369,7 +369,7 @@ print(Z)
```python
Z = np.linspace(0,1,12,endpoint=True)[1:-1]
Z = np.linspace(0,1,11,endpoint=False)[1:]
print(Z)
```