(5/5)

Assignment (100 pts):

- Import the numpy package under the name np.
- Import the pyplot package under the name plt.
- Create a zero vector of size 10
- Create an constant vector with value 5 of size 10 but the fifth value which is 10
- Create a vector with values ranging from 10 to 49
- Reverse a vector from question 4 (first element becomes last).
- Create a 4x4 matrix with values ranging from 0 to 10
- Create a 4x4 identity
- Create a 4x4x4 array with random
- Find the mean, median, sum of each column and row of the array from question 8
- Create a 5x5 matrix with value 10, diagonal values are 100, 200, 300, 400, and 500
- Create two matrices with random Multiply a 3x2 matrix by a 2x3 matrix.
- Create a 4x4 array by multiplying coordinate of each element
- Create two 4x4 random array A and B, then create an array with the equal element
- Stack array A and B from question 12 together both vertically and horizontally
- Evenly split the resulting arrays from A and B both vertically and horizontally
- Create a random array with shape (3, 5) and extract the second column and third row as separate arrays.
- Create a random 4x4 array and get the transpose and inverse of the matrix
- Calculate L1, L2 and L∞ norm distance given a coordinate matrix represented as a numpy array Plot the coordinate matrix.
- Read data from data.txt into a numpy array and calculate mean, std, var, cov and corr of two attributes.

(5/5)

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Get Free Quote!

303 Experts Online