An inverse of a matrix

Report a typo

Imagine that after a hard day, your best friend decided to learn SciPy a little bit. He created a code that allows implementing matrix inversion. Unfortunately, it doesn't work. You are asked to find the error. Please, find a line with the error and write down the right line in the box below.

import numpy as np
from scipy.linalg import inversion as inv

A = np.array([[6., 8.], [2., 6.]])
print(inv(A))
Enter a short text
___

Create a free account to access the full topic