MathGroup Archive 1998

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

Search the Archive

RE: commutativity



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




  • Prev by Date: Re: Re: Re: FindRoot accuracy/precision
  • Next by Date: Re: Eigenvalues
  • Prev by thread: Re: commutativity
  • Next by thread: Re: commutativity