[R] n-th power of a matrix

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Nov 2 15:53:06 CET 2004


jing tang wrote:

> Hello all,
> To calculate the power of a matrix, I used the command "mtx.exp(X, n)", 
> but there is an error saying "Error: couldn't find function "mtx.exp"".  
> How can I deal with this problem?
> Jing


You have not told us in which package mtx.exp() is, and looking for it 
shows us that it is in package "Malmig".

  library(Malmig)
  mtx.exp(X, n)

works for me.


Folks, PLEASE think about the packages you are using!
This is the (n+1)-th e-mail within 7 days not specifying the package you 
are talking about.

Uwe Ligges




More information about the R-help mailing list