If I clear the commutativity of *
:
ClearAttributes[Times, Orderless]
I get that ab
and ba
are different now. Why is it that when I order Mathematica to compute:
(a + b) c // Expand
It yields ca + cb
instead of ac + bc
? How can I make it work so that it yields the latter? It seems to me that this happens because the way Expand
works.
ClearAttributes[Times, Orderless]; (a + b) c // Expand // TraditionalForm
then you get same result as before which isac + bc
but no time to investigate more. $\endgroup$Orderless
attribute, the sorting does not occur. $\endgroup$(a + b) c // Distribute
? $\endgroup$a c + b c
: i.sstatic.net/4aJN4RfL.png - Is it a bug? $\endgroup$