Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I began to use Mathematica a few days. My problem is: How to expand expression like $(a+b)*(a+b)$, where this multiplication is non commutative? Mathematica can do this?

share|improve this question
2  
Maybe Distribute[(a + b) ** (a + b) ] ? –  b.gatessucks Apr 10 '13 at 17:02
1  
Look here for some more thoughts about non commutative multiplication and more ... –  Spawn1701D Apr 10 '13 at 18:08

1 Answer 1

up vote 5 down vote accepted

Distribute[] is a useful thing:

Distribute[(a + b) ** (c + d)]
   a ** c + a ** d + b ** c + b ** d
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.