Question: on Python Part I-Numpy Please answer the following questions using numpy functions. # import the numpy 1. Create a random vector of size 10 and

on Pythonon Python Part I-Numpy Please answer the following questions using numpy functions.\# import the numpy 1. Create a random vector of size 10and sort it. \#write the answer 2. Create a 44 matrix withvalues ranging from 1 to 16 \#write the answer 3. Run the

Part I-Numpy Please answer the following questions using numpy functions. \# import the numpy 1. Create a random vector of size 10 and sort it. \#write the answer 2. Create a 44 matrix with values ranging from 1 to 16 \#write the answer 3. Run the following code, then show the elements greater than 3 \#write the answer a=nparray([[1,2],[3,4],[5,6],[7,8]]) 4. Give the output for each print statement in the following code snippet x=narray([[1,2],[3,4]], dtype=np.float 64) y=np.array([[5,6],[7,8]], dtype=np.float64) \#Elementwise sum; both produce the array \#Elementwise difference; both produce the array \#Elementwise product; both produce the array \#Elementwise division; both produce the array \#Elementwise squareroot; both produce the array 5. Please write the numpy code of the process given below. \#write the answer 6. Run the following: What are the rank, shape of b, and the current values of b[0,0],b[0,1],b[1,0]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!