Search for question
Question

Introduction to Engineering Computing

1. Write single line expressions (in each cell) that will accomplish the following in Python using Numpy from the following arrays A and B.

a. Sum the columns of A to create a 1 x 2 vector p.

b. Sum the rows of в to create a 1 x3 vector q.

c. Sort each column of A independently in ascending order.

d. Sort в such that the rows are kept together but the second column is in ascending order.

e. Join A and B to form a single 3 x 4 array c.

Fig: 1