3 votes

How to convert a polynomial into a list?

A variant of E. Chan-López answer pol = p[1, 2, 5] p[3, 6, 9] p[4, 7, 8] - 3 p[1, 2, 4] p[3, 6, 9] p[5, 7, 8]; ...
eldo's user avatar
  • 70.4k
3 votes

How to convert a polynomial into a list?

pol = p[1, 2, 5] p[3, 6, 9] p[4, 7, 8] - 3 p[1, 2, 4] p[3, 6, 9] p[5, 7, 8]; Using FactorList and the following rules: <...
E. Chan-López's user avatar
2 votes

How to convert a polynomial into a list?

pol = p[1, 2, 5] p[3, 6, 9] p[4, 7, 8] - 3 p[1, 2, 4] p[3, 6, 9] p[5, 7, 8]; If[AtomQ[#[[1]]], List @@@ #, Join[{1}, List @@@ #]] & /@ List @@@ List @@ pol ...
MelaGo's user avatar
  • 8,636
1 vote

How to convert a list of polynomials with different degrees into a list of lists?

This gets a bit complicated because MMA will automatically evaluate addition of structurally equal elements. Toward this aim, we change addition (subtraction is an addition of the negative element) to ...
Daniel Huber's user avatar
  • 51.9k

Only top scored, non community-wiki answers of a minimum length are eligible