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.
This is not a very clear question. You might want to give more detail and maybe input and desired output.
If you have a polynomial but with all sort of parenthesis, garbled together, how to put them in the above form.
That's pretty far from an example, but maybe you want to use Expand. Just a guess.
Expand
The problem with ExpandAll is that it does not collect coefficients of same powers together.
Try Total[MonomialList[poly,vars]].
Total[MonomialList[poly,vars]]
Seems to work, thanks.