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 Python



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
Get step-by-step solutions from verified subject matter experts
