Book
Linear Algebra
Author
Gilbert Strang
Edition
def diagonalize(X): if is_diag(X): a= X.eigenvectors_left() l=[] for i in a: l.append(list(i[1][0])) S=transpose(matrix(l)) D=(S^(-1))*X*S return D else: print "not diag" A1=matrix([[1,1,1],[1,1,1],[1,1,1]]) diagonalize(A1) out:not diag
Solution by:
<Your Name>, <Profession>, <Organization>
<Your Name>, <Profession>, <Organization>