<<VilGebra`

A={{-3,15},{-5,25}};
PotenciaNMatriz[A,3]