Message Boards Message Boards

0
|
4506 Views
|
7 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to cast polynomial in terms of powers of multiple variables

Posted 9 years ago

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.

POSTED BY: Al Guy
7 Replies

This is not a very clear question. You might want to give more detail and maybe input and desired output.

POSTED BY: Daniel Lichtblau

Try Total[MonomialList[poly,vars]].

POSTED BY: Daniel Lichtblau
Posted 9 years ago

If you have a polynomial but with all sort of parenthesis, garbled together, how to put them in the above form.

POSTED BY: Al Guy

That's pretty far from an example, but maybe you want to use Expand. Just a guess.

POSTED BY: Daniel Lichtblau
Posted 9 years ago

The problem with ExpandAll is that it does not collect coefficients of same powers together.

POSTED BY: Al Guy
Posted 9 years ago

Seems to work, thanks.

POSTED BY: Al Guy

enter image description here

POSTED BY: Simon Cadrin
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract