Symbolic simplificaction without commutativity
I would like to expand the expression:
(axpx+aypy+azpz+bm)2
where:
axay≠ayaz
Or generally speaking the objects ax,ay,az,b are non-commutative for multiplication.