From a7010265f7c515f80d4a38c6f1645cdc623f7623 Mon Sep 17 00:00:00 2001 From: Jayeol Chun Date: Tue, 4 Jul 2017 00:34:47 -0400 Subject: [PATCH] fix spelling error; suggestion for an alternative answer generating one less element, but obviously no great computational advantage --- 100 Numpy exercises with hint.ipynb | 2 +- 100 Numpy exercises with hint.md | 2 +- 100 Numpy exercises.ipynb | 2 +- 100 Numpy exercises.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/100 Numpy exercises with hint.ipynb b/100 Numpy exercises with hint.ipynb index cc629f2..6df24e5 100644 --- a/100 Numpy exercises with hint.ipynb +++ b/100 Numpy exercises with hint.ipynb @@ -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)" ] }, { diff --git a/100 Numpy exercises with hint.md b/100 Numpy exercises with hint.md index 1bfc5d1..e95d56d 100644 --- a/100 Numpy exercises with hint.md +++ b/100 Numpy exercises with hint.md @@ -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) diff --git a/100 Numpy exercises.ipynb b/100 Numpy exercises.ipynb index 166e06f..78456cb 100644 --- a/100 Numpy exercises.ipynb +++ b/100 Numpy exercises.ipynb @@ -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)" ] }, diff --git a/100 Numpy exercises.md b/100 Numpy exercises.md index 8f27845..799d1fa 100644 --- a/100 Numpy exercises.md +++ b/100 Numpy exercises.md @@ -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) ```