[R] How to calculte the power of a matrix

Moohwan Kim kmhlmj2 at gmail.com
Fri Dec 11 20:01:13 CET 2009


Dear R family

 I have a following question.
 Suppose I have a matrix as follows, for instance:
 tau=
 0 1 0 0 0
 0 0 1 0 0
 0 0 0 1 0
 0 0 0 0 1
 1 0 0 0 0

 I want to calculate (-m) power of tau, for example, m=893.

When I run tau^2, the outcome is just tau.
Any help would be appreciated.

thanks in advance.

best
moohwan




More information about the R-help mailing list