Suppose I have an expression like $x+x+y(x+y(x+y))$. I used Simplify command and get $y^3+x(2+y+y^2)$. How to remove parentheses
to get every summand explicitly?
$$y^3+2x+xy+xy^2$$
Asked
Active
Viewed 337 times
2
Glinka
- 165
- 6
Expandinstead – garej Mar 29 '16 at 20:07@means? You deleted that comment? ThecntSummandsworked, thanks – Glinka Mar 29 '16 at 20:27@means very basic thing in MMA. You may use keyF1with term in question to get reference. – garej Mar 29 '16 at 20:31Length[Apply[List, Expand[x + x + y (x + y (x + y))]]]. Thiw works because after expansion of a polynomial, Plus is the head and the terms are the next level leaves. Apply makes this a list of terms. – JJM Mar 29 '16 at 20:37