import numpy as np

A = np.array([
    [2, 2],
    [2, 2]
])

B = np.array([
    [1, 0],
    [0, 1]
])
C=(A @ B)-B
C = (C @ np.linalg.inv(B))
print("A-1=",end=f"{C}")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: