Computational Physics, Linear Algebra, Python, Math, Matrix.
matrices U ,D and V in the reverse order. Note that it returns the right singular vector already transposed. # Unit circle print('Unit circle:') matrixToPlot(np.array([[1, 0], [0, 1]])) plt.xlim(-1.5, 1.5) plt.ylim(-1.5, 1.5) plt.show() print('First rotation:') matrixToPlot(V) plt.xlim(-1.5, 1.5)