Dear all,
I'm trying to define a non-commutative product to use in my computations with a simple requirement: only a few objects must be multiplied by using this product, everything else (and in particular constant symbols) must go through and be considered like scalars for the product.
After diving into the group and into the documentation, I have understood that this should be possible by defining something like
DefProduct[product, AssociativeProductQ -> True, IdentityElementOfProduct -> 1, ScalarsOfProduct -> ConstantSymbolQ]
However, when I try to use it, it does not take constant symbols out of the multiplication, not even after the use of ToCanonical. Clearly, there is something that I'm not doing correctly.
Could you help me with this?
Best,
Mario