Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You should read the doc before asking such questions here.

In particular, give a name to your object and use the automatic TAB-completion to get the list of available methods. In this way, you can learn about the methods .degree and .variables by hitting the TAB key after toto.

sage: sage: R = BooleanPolynomialRing(3, 'x')
sage: sage: x, y, z = R.gens()
sage: too = x+z
sage: sage: too.v   # (pressing TAB key here)
too.variable          too.vars_as_monomial  
too.variables         too.version           
sage: too.variables()
(x0, x2)
sage: len(toto.variables())
2

You should read the doc before asking such questions here.

In particular, give a name to your object and use the automatic TAB-completion to get the list of available methods. In this way, you can learn about the methods .degree and .variables by hitting the TAB key after toto.

sage: sage: R = BooleanPolynomialRing(3, 'x')
sage: sage: x, y, z = R.gens()
sage: too = x+z
sage: sage: too.v   # (pressing TAB key here)
too.variable          too.vars_as_monomial  
too.variables         too.version           
sage: too.variables()
(x0, x2)
sage: len(toto.variables())
len(too.variables())
2

You should read the doc before asking such questions here.

In particular, give a name to your object and use the automatic TAB-completion to get the list of available methods. In this way, you can learn about the methods .degree and .variables by hitting the TAB key after toto.too.

sage: sage: R = BooleanPolynomialRing(3, 'x')
sage: sage: x, y, z = R.gens()
sage: too = x+z
sage: sage: too.v   # (pressing TAB key here)
too.variable          too.vars_as_monomial  
too.variables         too.version           
sage: too.variables()
(x0, x2)
sage: len(too.variables())
2