Question: problem with MatrixPower

hello!

 

i seem to have a problem with MatrixPower...

if i define a matrix such as

A:=([[-5,1],[-5,0]])

and use MatrixPower(A,k);

then i get the matrix A^k.

but, if fur example i do the following, i get an error:

A:=([[-5,1],[-5,0]]);

a:=exponential(A,1);

MatrixPower(a,k);

Error, (in LinearAlgebra:-MatrixPower) invalid input: LinearAlgebra:-MatrixPower expects its 1st argument, A, to be of type Matrix(square) but received a.

can someone please help?...

i need this function for my h.w in linear systems.

 

thnx

ben

Please Wait...