Computational Science, Numpy, Linear Algebra, Numerical Analysis, Python Programming.
function to produce a 4×4 identity matrix, I. Multiply M by I to show that the result is M. from numpy.linalg import det M = np.array([[0,2,1,3], [3,2,8,1], [1,0,0,3], [0,3,2,1]]) print('M:\n', M) print('Determinant: %.1f'%det(M)) I = np.eye(4) print('I:\n', I) print('M*I:\n', np.dot(M, I)) The