xxxxxxxxxx
# python3 inversion of matrix x
inverse = numpy.linalg.inv(x)
xxxxxxxxxx
import numpy as np
# Define the matrix
matrix = np.array([[1, 2], [3, 4]])
# Calculate the inverse of the matrix
inverse_matrix = np.linalg.inv(matrix)
# Print the inverse matrix
print(inverse_matrix)