[R] n-th power of a matrix

Martin Maechler maechler at stat.math.ethz.ch
Tue Nov 2 15:56:53 CET 2004


>>>>> "jing" == jing tang <tang_chalmers at hotmail.com>
>>>>>     on Tue, 02 Nov 2004 15:11:32 +0100 writes:

    jing> Hello all,

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

## First load the "Malmig" package in which the  mtx.exp()
## function is defined:

library(Malmig)

## If that gives an error as well, you also need.
install.packages("Malmig")

Martin Maechler, ETH Zurich




More information about the R-help mailing list