Question: python language write input and output import numpy as np A = np.array ( [4,9,1]) # create vector A B = np.array([3,8,10]) # create vector

python language write input and output
import numpy as np A = np.array ( [4,9,1]) # create vector A B = np.array([3,8,10]) # create vector B Extend your python code, to calculate the followings: a) A+B b) A - B c) Element-wise product: A*B d) Dot-product: A.dot(B) e) Cross product: np.cross(A,B) f) The norm (magnitude) of each vector g) Finally, find the angle between A and B (Hint: Use the dot produ
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
