answered 1 year ago
Your matrix is not symmetric:
A = matrix(QQbar, [[2,-1,0],[-1,2,1],[0,-1,2]]) A.is_symmetric()