Re: commutativity
- To: mathgroup@smc.vnet.net
- Subject: [mg11604] Re: commutativity
- From: Clemens Frey <Clemens.Frey@uni-bayreuth.de>
- Date: Tue, 17 Mar 1998 10:43:39 -0500
- Organization: uni-bayreuth.de
- References: <6ek4j9$jag@smc.vnet.net>
John Albert Horst wrote: > > I would like to be able to define a rule called, say, commutativeOff > that would work as follows: > > In[1] := a*b == b*a/.commutativeOff > > Out[1] := False > > As it is, > > In[1] := a*b == b*a > > Out[1] := True > > How can I do this? Hi everyone, I just can give a hint: You could define a function in terms of Times that does not have the attribute "Orderless" that Times has. (to see this, use the Attribute-function...) Bye Clemens