Linear Algebra, Numpy, Numpy Tutorial, Data Science, Python.
= np.array([4,1]) w = u+v print(w) [6 5] Scaling a vector You can scale a vector as well. For example, let’s take u from the previous example and scale it by a factor of 3. So 3u would be ⟨3∗2,3∗4⟩=⟨6,12⟩ And graphically that would be: Figure 3 And in NumPy you would solve it like this: u =