MTH 337 Quiz 7 Sample: NumPy Arrays and Indexing Name
MTH 337 Quiz 7 Sample: NumPy Arrays and Indexing
Name:
Python Code
1)
import numpy as np
print(np.ones(4))
2)
print(np.zeros(3, dtype=bool))
3)
test = np.arange(6).reshape((2, 3))
print(test)
4)
print(test[1])
5)
print(test[:, ::2])
Result
6)
Create an empty array named my empty with
3 rows and 4 columns.
7)
Let array1 be an array. Find the shape of
array1.
8)
Let array2 be a 2D array. Assign the value in
row 2 and column 3 of array2 to be 561.
9)
Use linspace to generate the following array: array([0. , 0.1, 0.2, 0.3,
0.4, 0.5])
Total Points:
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- introduction chapter to numpy
- numpy scipy pandas cheat sheet
- sids to python cgns python
- advanced data management csci 490 680
- numpy arrays
- stats 507 data analysis in python edu
- release 0 1 1 andrew straw florian finkernagel
- mth 337 quiz 7 sample numpy arrays and indexing name
- cheat sheet numpy python copy
- numpy array declaration in python
Related searches
- you and proper name grammar
- difference between generic and brand name drugs
- random first and last name generator male
- numpy min and max
- numpy arrays matrix multiplication
- stack numpy arrays different sizes
- concatenate numpy arrays python
- python 2 7 install numpy windows
- 3rd grade arrays and multiplication
- difference between arrays and arraylists
- merge last name and first name excel
- c arrays and functions