MathGroup Archive 2012

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

Search the Archive

Re: MatrixPower problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124405] Re: MatrixPower problem
  • From: per at RQNNE.invalid (Per Rønne)
  • Date: Wed, 18 Jan 2012 06:04:22 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <je96q1$j7o$1@smc.vnet.net> <jel26f$ln1$1@smc.vnet.net>
  • Reply-to: spam at RQNNE.dk (Per Rønne)

roby <roby.nowak at gmail.com> wrote:

> one could check every expression and its sub sub... subexpression for
> the occurence of a matrix and force MatrixForm on output for these.
> 
> $Post := Map[If[MatrixQ@#, MatrixForm@#, #] &, #, {0, Infinity}] &

Which gives the following error:

Function::slot: Slot[(If[MatrixQ[#1],#1,#1]&)[1]] (in
(If[MatrixQ[#1],#1,#1]&)[Map[(If[MatrixQ[#1],#1,#1]&)[(If[MatrixQ[<<1>>]
,<<1>>,Slot[<<1>>]]&)[If[(<<1>>&)[<<1>>],(<<1>>&)[<<1>>],(<<1>>&)[<<1>>]
]]&],(If[MatrixQ[#1],#1,#1]&)[Slot[(If[MatrixQ[<<1>>],<<1>>,Slot[<<1>>]]
&)[1]]],(If[MatrixQ[#1],#1,#1]&)[{(If[MatrixQ[<<1>>],<<1>>,Slot[<<1>>]]&
)[0],(If[MatrixQ[<<1>>],<<1>>,Slot[<<1>>]]&)[\[Infinity]]}]]]&) should
contain a non-negative integer. >>
-- 
Per Erik Rønne
http://www.RQNNE.dk
Errare humanum est, sed in errore perseverare turpe



  • Prev by Date: Re: Is there any efficient easy way to compare two lists with the same length with Mathematica?
  • Next by Date: NIntegrate and Plot solution of differ. equa. over initial conditions
  • Previous by thread: Re: MatrixPower problem
  • Next by thread: Re: MatrixPower problem