Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get a list of monomials of a given degree

Is there a nice way to get all monomials of a given degree in a multivariable polynomial ring?

For example I want to input x,y,3 and get

x^3, x^2y, xy^2, y^3.

I think I could code it myself with not too much work, but it seems like something that might already have a nice method.