I was expecting x^2 as the characteristic polynomial. What's gone wrong? sage: type(m) <type 'sage.matrix.matrix_rational_dense.Matrix_rational_dense'> sage: m [ 0 0 1/4 0 0 1/4 0 0 -1/4 0 0 -1/4] [ 1/4 0 0 -1/4 0 0 1/4 0 0 -1/4 0 0] [ 0 1/4 0 0 -1/4 0 0 -1/4 0 0 1/4 0] [ 0 0 1/4 0 0 1/4 0 0 -1/4 0 0 -1/4] [-1/4 0 0 1/4 0 0 -1/4 0 0 1/4 0 0] [ 0 -1/4 0 0 1/4 0 0 1/4 0 0 -1/4 0] [ 0 0 -1/4 0 0 -1/4 0 0 1/4 0 0 1/4] [ 1/4 0 0 -1/4 0 0 1/4 0 0 -1/4 0 0] [ 0 -1/4 0 0 1/4 0 0 1/4 0 0 -1/4 0] [ 0 0 -1/4 0 0 -1/4 0 0 1/4 0 0 1/4] [-1/4 0 0 1/4 0 0 -1/4 0 0 1/4 0 0] [ 0 1/4 0 0 -1/4 0 0 -1/4 0 0 1/4 0] sage: m.charpoly() x^12 sage: m**2 [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0] [0 0 0 0 0 0 0 0 0 0 0 0]
Graham -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org