Computational Physics, Linear Algebra, Python, Math, Physics.
determinant. We will transform the unit square with the matrix: its determinant is -4 B = np.array([[-2, 0], [0, 2]]) np.linalg.det(B) -4.0 new_i_1 = B.dot(i) new_j_1 = B.dot(j) plotVectors([new_i_1, new_j_1], [['#1190FF'], ['#FF9A13']]) plt.xlim(-3, 0.5) plt.ylim(-0.5, 3) plt.show() We can see