SciPy - Linear Algebra (scipy.linalg)
What is the output of this code?
import numpy as np from scipy.linalg import inv matrix = np.array([[1, 2], [3, 4]]) inverse = inv(matrix) print(np.round(inverse, 2))
