MathGroup Archive 2002

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

Search the Archive

Re: In order = Out order

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34539] Re: In order = Out order
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Mon, 27 May 2002 01:16:16 -0400 (EDT)
  • References: <acknpu$8ch$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

We can temporarilly clear the attributes Orderless, but take care that non
of your code uses it.

    a=z;b=y;c=x;

    ClearAttributes[{Plus,Times}, Orderless];

    {a b c, a+b+c}

    {z y x,z+y+x}

    SetAttributes[{Plus,Times}, Orderless];


--
Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565


<Matthias.Bode at oppenheim.de> wrote in message
news:acknpu$8ch$1 at smc.vnet.net...
> Dear Colleagues,
>
> purely for readability I wish to obtain the output in the same order the
> input was presented, e.g.:
> In:
> a= lengthy expr one;
> b= lengthy expr two;
> c= lengthy expr three;
>
> have been deduced and are now combined:
>
> In: (a+b+c) * 1/2
>
> Out: (lengthty expr one* lengthy expr three* lengthy expr two)*1/2
>
> Lexicographal ordering is undesirable in this case because the reader has
> difficulties in finding what he expects intuitively. Presently, I make it
a
> TextCell and cut and paste the expressions - which is cumbersome. Better
> method?
>
> Best regards,
> Matthias Bode
> Sal. Oppenheim jr. & Cie. KGaA
> Koenigsberger Strasse 29
> D-60487 Frankfurt am Main
> GERMANY
> Tel.: +49(0)69 71 34 53 80
> Mobile: +49(0)172 6 74 95 77
> Fax: +49(0)69 71 34 95 380
> E-mail: matthias.bode at oppenheim.de
> Internet: http://www.oppenheim.de
>
>
>




  • Prev by Date: A question about Mathematica
  • Next by Date: Re: Solving an equation
  • Previous by thread: RE: In order = Out order
  • Next by thread: RE: Re: In order = Out order