Ask Your Question

Revision history [back]

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

sage: M^n

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