MathGroup Archive 2000

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

Search the Archive

Conversion of Orderless functions to non Orderless one


Hi, there

My question might be silly to somebody out there but it really bothers
me: Is there any way to convert an orderless function into non
orderless ones for a certain range of arguments?

For instance, let's say have a set Operators:

Operators={a,b,c}

What I wanted to do is that whenever expressions like Times[b,a,c] is
entered, the outcome should look like b**a**c (i.e. Times turned into
NonCommutativeMultiply). The special requirement is that this change
happens only for members of the set Operators (otherwise I can just
ClearAttributes[Times,Orderless] ), and that the output keeps the order
of the input argument, i.e. it should be b**a**c, NOT a**b**c. Could
anyone help the case?

Liu Zhao
Univ. York, UK


Sent via Deja.com http://www.deja.com/
Before you buy.


  • Prev by Date: Re:two dimensional distribution
  • Next by Date: Need good Mathematica programmer
  • Previous by thread: Re: Re:two dimensional distribution
  • Next by thread: Re: Conversion of Orderless functions to non Orderless one