Linear Algebra, Numpy, Numpy Tutorial, Data Science, Python.
np.array([2,4]) print(3*u) [ 6 12] Unit Vectors As previously defined, a vector has a magnitude and direction. A unit vector is nothing but a vector that has a magnitude of 1. In NumPy, you can use the linalg.norm function to find the magnitude of any NumPy array. For example, 𝑢̂ =⟨1,2,3⟩. The