Linear Algebra, Numpy, Numpy Tutorial, Data Science, Python.
magnitude of this vector is sqrt(14) and the unit vector would be 𝑢̂ ′=⟨1/sqrt(14), 2/sqrt(14), 3/sqrt(14)⟩ u = np.array([1,2,3]) print("Sqaure root of 14 is: {}".format(np.sqrt(14))) print("The magnitude of the vector u is: {}".format(np.linalg.norm(u))) print("\n") print("The unit vector of u is: