[R] Multiplication of Matrices

Ko-Kang Kevin Wang kwan022 at stat.auckland.ac.nz
Wed Oct 9 09:23:27 CEST 2002


Hi,

Suppose I have a matrix, A.  Is there an easy way to find A^{n}?

I mean, I can do something like:
  A %*% A %*% A %*% A
for A^4, but if I want A^{10} it would be kind of annoying...

Cheers,

Kevin

------------------------------------------------------------------------------
Ko-Kang Kevin Wang
Postgraduate PGDipSci Student
Department of Statistics
University of Auckland
New Zealand
Homepage: http://www.stat.auckland.ac.nz/~kwan022


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list