MonomialList is a neat functions for rearranging a polynomial, but if you convert it back to a polynomial with Total[] or Plus[], the output reverts to the default lexicographic order, which sabotages the functionality of MonomialList[]. Is there a way to rearrange a polynomial according to MonomialList[] options? By that, I mean a way that’s easier than editing the list back into a polynomial character by character?
For example:
Say you have a polynomial like 4 x y^2 z + 4 z^2 - 5 x^3 + 7 x^2 z^2 and want to display it three different ways – Lexicographic order, DegreeLexicographic order and NegativeDegreeLexicographic order.
You’re too modest. I would not have recognized that MSE thread as an answer to my question had I seen it. In fact, I’ve seen it now, and I still don’t recognize it as an answer to my question. Clarity is the ultimate genius. The guys who figured out what Gauss was saying were smarter than Gauss.
Yes, Rohit. It appears to be the same issue. I think I misunderstood the “orders = …” line in your previous post. Today I found the tutorial on patterns. I’m going through it now.