Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there a way to make sage print out every member of the ring?

Hi all,

In a finite ring, is there a way to get Sage to print out all possible elements of the ring. I have a method, but it's very crude. It's simply doing something like random_element to the ring over thousands of times and sticking them into this great big set if it is not already in the set. But this method obviously is not what I want.

Below is the ring I'm working with.

B = BooleanPolynomialRing(20,'x', order = 'lex')

Is there a Sage function to put every element of the ring into a list? I can't seem to find it in Sage documentation.

Is there a way to make sage print out every member of the ring?

Hi all,

In a finite ring, is there a way to get Sage to print out all possible elements monomials of the ring. ring? I have a method, but it's very crude. It's simply doing something like random_element taking a random variable to the mutiply with a random ring over thousands of times and sticking them into this great big set if it is not already in the set. element from B.random_element(). But this method is obviously is not what I want.

Below is the ring I'm working with.

B = BooleanPolynomialRing(20,'x', order = 'lex')

Is there a Sage function to put every element monomial of the ring into a list? I can't seem to find it in Sage documentation.

Is there a way to make sage print out every member of the ring?

Hi all,

In a finite ring, is there a way to get Sage to print out all possible monomials of the ring? I have a method, but it's very crude. It's simply doing something like taking a random variable to mutiply with a random ring element from B.random_element(). But this is obviously not what I want.

Below is the ring I'm working with.

B = BooleanPolynomialRing(20,'x', order = 'lex')

Is there a Sage function to put every monomial of the ring into a list? I can't seem to find it in Sage documentation.