Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7994
| From | roby <roby.nowak@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: MatrixPower problem |
| Date | 2012-01-19 10:10 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jf8q60$3i0$1@smc.vnet.net> (permalink) |
| 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...@RQNNE.invalid (Per R=F8nne) wrote:
> roby <roby.no...@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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
MatrixPower problem per@RQNNE.invalid (Per Rønne) - 2012-01-07 10:29 +0000
Re: MatrixPower problem David Bailey <dave@removedbailey.co.uk> - 2012-01-08 09:28 +0000
Re: MatrixPower problem per@RQNNE.invalid (Per Rønne) - 2012-01-09 08:24 +0000
Re: MatrixPower problem roby <roby.nowak@gmail.com> - 2012-01-11 22:24 +0000
Re: MatrixPower problem per@RQNNE.invalid (Per Rønne) - 2012-01-18 11:08 +0000
Re: MatrixPower problem roby <roby.nowak@gmail.com> - 2012-01-19 10:10 +0000
Re: MatrixPower problem per@RQNNE.invalid (Per Rønne) - 2012-01-22 12:32 +0000
csiph-web