First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unless i misunderstand you question, if M is your matrix and n is an integer, you can just do:

sage: M^n
click to hide/show revision 2
No.2 Revision

Unless i misunderstand you question, if M is your matrix and n is an integer, you can just do:

sage: M^n

or, if you prefer to be Python compatible:

sage: M**n