MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: MatrixPower problem


Dana DeLouis <dana2010 at me.com> wrote:

> > P = {{0, 1/2, 0, 1/2, 0}, {1/2, 0, 1/3, 0, 0},
>         {0, 1/2, 0, 1/2, 0}, {1/2, 0, 1/3, 0, 0}, {0, 0, 1/3, 0, 1}}
>  //MatrixForm
>
>
> Hi.  Just to give another option...
>
> // Have each output use Matrix Form
>
> $Post = MatrixForm
>
> // Then...
>
> =
> P={{0,1/2,0,1/2,0},{1/2,0,1/3,0,0},
>    {0,1/2,0,1/2,0},{1/2,0,1/3,0,0},{0,0,1/3,0,1}}
>
> << Output using MatrixForm >>
>
> // Now, turn it off:
>
> $Post =.
>
> e1={1,0,0,0,0};
>
> Limit[MatrixPower[P,k].e1,k->\[Infinity]]
> {0,0,0,0,1}

Yes - and even without the drawbacks of turning the variables into
MatrixForm format.
--
Per Erik R=F8nne
http://www.RQNNE.dk
Errare humanum est, sed in errore perseverare turpe



  • Prev by Date: How to set up Intel C++ Composer XE for Mathematica on windows 7?
  • Next by Date: Re: Is there any efficient easy way to compare two lists with the same length with Mathematica?
  • Previous by thread: Re: MatrixPower problem
  • Next by thread: Re: MatrixPower problem