I want Mathematica to recognize that
A.(-B.C)+A.B.C = 0
Yet FullSimplify and the like leaves the expression as it is. How do I get around this?
I want Mathematica to recognize that
A.(-B.C)+A.B.C = 0
Yet FullSimplify and the like leaves the expression as it is. How do I get around this?
You can teach Mathematica to factor out any number from inside a dot.
Unprotect[Dot];
x__.(c_?NumberQ y__) := c x.y
(c_?NumberQ x__).y__ := c x.y
Protect[Dot];