This commit is contained in:
Viacheslav Zhukov 2020-01-19 00:06:26 +03:00
parent d6fbcab327
commit bf879890dd
6 changed files with 8 additions and 10 deletions

View File

@ -664,7 +664,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### 36. Extract the integer part of a random array using 5 different methods (★★☆)"
"#### 36. Extract the integer part of a random array of positive numbers using 4 different methods (★★☆)"
]
},
{
@ -677,7 +677,6 @@
"\n",
"print (Z - Z%1)\n",
"print (np.floor(Z))\n",
"print (np.ceil(Z)-1)\n",
"print (Z.astype(int))\n",
"print (np.trunc(Z))"
]

View File

@ -332,7 +332,7 @@ np.negative(A,out=A)
np.multiply(A,B,out=A)
```
#### 36. Extract the integer part of a random array using 5 different methods (★★☆)
#### 36. Extract the integer part of a random array of positive numbers using 4 different methods (★★☆)
```python
@ -340,7 +340,6 @@ Z = np.random.uniform(0,10,10)
print (Z - Z%1)
print (np.floor(Z))
print (np.ceil(Z)-1)
print (Z.astype(int))
print (np.trunc(Z))
```

View File

@ -637,7 +637,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### 36. Extract the integer part of a random array using 5 different methods (★★☆)"
"#### 36. Extract the integer part of a random array of positive numbers using 4 different methods (★★☆)"
]
},
{

View File

@ -181,7 +181,7 @@ np.sqrt(-1) == np.emath.sqrt(-1)
#### 36. Extract the integer part of a random array using 5 different methods (★★☆)
#### 36. Extract the integer part of a random array of positive numbers using 4 different methods (★★☆)

View File

@ -610,8 +610,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### 36. Extract the integer part of a random array using 5 different methods (★★☆) \n",
"(**hint**: %, np.floor, np.ceil, astype, np.trunc)"
"#### 36. Extract the integer part of a random array of positive numbers using 4 different methods (★★☆) \n",
"(**hint**: %, np.floor, astype, np.trunc)"
]
},
{

View File

@ -247,9 +247,9 @@ np.sqrt(-1) == np.emath.sqrt(-1)
#### 36. Extract the integer part of a random array using 5 different methods (★★☆)
#### 36. Extract the integer part of a random array of positive numbers using 4 different methods (★★☆)
(**hint**: %, np.floor, np.ceil, astype, np.trunc)
(**hint**: %, np.floor, astype, np.trunc)