Question: The Numpy module includes libraries for numerical calculations. There are array-based calculations, and matrix-based calculations. For example, the cell below defines a small 2 x

The Numpy module includes libraries for numerical calculations. There are array-based calculations, and matrix-based calculations. For example, the cell below defines a small 2 x 2 array, and then does two kinds of multiplication. # a small array twobytwo = np.array([[1, 2], [3, 4]]) # array-based array_product = 2 * twobytwo * twobytwo # matrix-based matrix_product = 2 * np.matmul(twobytwo, twobytwo) # print them both print(array_product) print(matrix_product) [[ 28] [18 32]] [[14 20] (30 44]] Task 1 Questions 1. (Easy) Explain the difference between the two products. Your answer here 2. (Deeper) Python uses the multiplication operator * for normal Python numbers, but here we see it being used for NDArrays. How does Python know which kind of multiplication to do? Your answer here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
