function mpower(a, n) {
    let p = a;
    loop(1, n, () => p = mmultiply(p, a));
    return p;
  }
// Raise a matrix to a positive integer power (n>0)
Raise a matrix to a positive integer power (n>0)
Raise a matrix to a positive integer power ( n > 0 )
function mpower(a, n) {
    let p = a;
    loop(1, n, () => p = mmultiply(p, a));
    return p;
  }
function mpower ( a , n ) { let p = a ; loop ( 1 , n , ( ) => p = mmultiply ( p , a ) ) ; return p ; }
Raise a matrix to a positive integer power (n>0)
Raise a matrix to a positive integer power ( n > 0 )