Computational Physics, Linear Algebra, Python, Math, Physics.
diagonal values are identical. Let’s create the matrix A: A = np.array([[2, 0], [0, 2]]) A Now we will apply A on our two unit vectors i and j and plot the resulting new vectors: new_i = A.dot(i) new_j = A.dot(j) plotVectors([new_i, new_j], [['#1190FF'], ['#FF9A13']]) plt.xlim(-0.5, 3)