Explore Library
Code QuizIntermediate

Matrix Inverse Computation

Identifying the wrong function used to invert a matrix.

Codepython
import numpy as np

A = np.array([[4., 7.],
              [2., 6.]])

# Compute the inverse of A
A_inv = np.linalg.inverse(A)
print(A_inv)

What is the bug in this code?