MathGroup Archive 2012

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

Search the Archive

Re: MatrixPower problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124415] Re: MatrixPower problem
  • From: roby <roby.nowak at gmail.com>
  • Date: Thu, 19 Jan 2012 05:08:12 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <je96q1$j7o$1@smc.vnet.net> <jel26f$ln1$1@smc.vnet.net> <jf697u$ge3$1@smc.vnet.net>

Well, this is strangely.

When dou you get the error, as soon as you enter: $Post :=
Map[If[MatrixQ@#, MatrixForm@#, #] &, #, {0, Infinity}] &
or not until you enter some matrix ?

Which version of Mathematica do you use ?
I tested flawless with 7.0, 8.0

You could try to replace infinity by some "sufficient" high integer
e.g.: $Post := Map[If[MatrixQ@#, MatrixForm@#, #] &, #, {0, 1000}] &


Cheers Robert

On 18 Jan., 12:08, p... at RQNNE.invalid (Per R=F8nne) wrote:
> roby <roby.no... 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=F8nnehttp://www.RQNNE.dk
> Errare humanum est, sed in errore perseverare turpe




  • Prev by Date: Re: log-like symbols?
  • 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