TransformationFunctions
- To: mathgroup at smc.vnet.net
- Subject: [mg101905] TransformationFunctions
- From: ". at ntaxa.com" <kakabomba at gmail.com>
- Date: Wed, 22 Jul 2009 06:22:42 -0400 (EDT)
Can anyone advice why following code does not work: In[538]:=tf[z_NonCommutativeMultiply] := -z[[2]]**z[[1]] In[539]:=Simplify[x ** y + y ** x,TransformationFunctions -> {tf, Automatic}] Out[539]:=x ** y + y ** x I expect rather 0 By the way: In[540]:=x ** y + tf[y ** x] Out[540]:=0