Merge pull request #46 from chrisjdavie/master
solution to 50 only works for a vector
This commit is contained in:
@@ -860,7 +860,7 @@
|
|||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"#### 50. How to find the closest value (to a given scalar) in an array? (★★☆)"
|
"#### 50. How to find the closest value (to a given scalar) in a vector? (★★☆)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ np.sqrt(-1) == np.emath.sqrt(-1)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### 50. How to find the closest value (to a given scalar) in an array? (★★☆)
|
#### 50. How to find the closest value (to a given scalar) in a vector? (★★☆)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1028,7 +1028,7 @@
|
|||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"#### 50. How to find the closest value (to a given scalar) in an array? (★★☆)"
|
"#### 50. How to find the closest value (to a given scalar) in a vector? (★★☆)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -482,7 +482,7 @@ Z = np.zeros((16,16))
|
|||||||
print(Z)
|
print(Z)
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 50. How to find the closest value (to a given scalar) in an array? (★★☆)
|
#### 50. How to find the closest value (to a given scalar) in a vector? (★★☆)
|
||||||
|
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|||||||
Reference in New Issue
Block a user