When running the following code
from sympy import * A,B = symbols("A B ") A = Matrix([[2,-1,1,3],[3,1,-2,-2],[1,-1,1,7],[1,5,7,13],[1,-7,-5,12]]) B = A.