Linear Algebra, Mathematics, Science, Computational Thinking.
function linalg.inv() to calculate the inverse of A. A = np.array([[3, 0, 2], [2, 0, -2], [0, 1, 1]]) A array([[ 3, 0, 2], [ 2, 0, -2], [ 0, 1, 1]]) Now, we calculate its inverse A_inv = np.linalg.inv(A) A_inv array([[ 0.2, 0.2, 0. ], [-0.2, 0.3, 1. ], [ 0.2, -0.3, -0. ]]) We can check that A^(-1)