How can I put a polynomial not just in terms of powers of one variable, but also in terms of mixed power variable:
a1 + a2 x^2 + a3 y^2 + a4 x y + a5 x y^2 ....
?
Thanks.
Try Total[MonomialList[poly,vars]].
Total[MonomialList[poly,vars]]
This is not a very clear question. You might want to give more detail and maybe input and desired output.
Seems to work, thanks.
The problem with ExpandAll is that it does not collect coefficients of same powers together.
That's pretty far from an example, but maybe you want to use Expand. Just a guess.
Expand
If you have a polynomial but with all sort of parenthesis, garbled together, how to put them in the above form.