| 1 | initial version |
You can get the list of vectors as follows:
sage: [A^k*v for k in range(n)]
Then you can check that they are linearly independent by looking at the determinant of the matrix made with those vectors:
sage: det(matrix([A^k*v for k in range(n)]))
Or,
sage: matrix([A^k*v for k in range(n)]).is_invertible()
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.