a=matrix([[1,2,3],[0,4,5],[0,0,6]])
print a
a.jordan_form()
b=matrix([[1,1],[-1,-1]])
print b
b.jordan_form()