RE: commutativity
- To: mathgroup@smc.vnet.net
- Subject: [mg11569] RE: [mg11546] commutativity
- From: jmt <jmthomas@cybercable.tm.fr>
- Date: Tue, 17 Mar 1998 10:42:54 -0500
- Organization: TeA
- Return-Receipt-To: jmt <jmthomas@cybercable.tm.fr>
There is in Mathematica a built-in non-commutative operator: NonCommutativeMultiply, with a shorthand **. Have also a look at Section 2.4.10 of "The Mathematica Book" that will guide you in constructing operators with properties attached to objects. -----Message d'origine----- De: John Albert Horst [SMTP:horst@cme.nist.gov] Date: samedi 14 mars 1998 19:56 A: mathgroup@smc.vnet.net Objet: [mg11546] commutativity 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? Thanks for the help, John Horst Intelligent Systems Division National Institute of Standards and Technology