Ask Your Question

How to count degree of a monomial in boolean polynomial

asked 2014-08-09 08:32:20 +0200

anonymous user


As stated in the title, my question is:

Is there any way to count the degree of a monomial of a boolean polynomial in Sage?

Say, for example,

degree(xy) = 2  
degree(xyz) = 3
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-08-09 14:21:38 +0200

FrédéricC gravatar image

Like that ?

sage: R = BooleanPolynomialRing(3, 'x')
sage: x, y, z = R.gens()
sage: (x * y).degree()
sage: (x * y * z).degree()
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-08-09 08:32:20 +0200

Seen: 292 times

Last updated: Aug 09 '14