Ask Your Question
0

How to count degree of a monomial in boolean polynomial

asked 10 years ago

anonymous user

Anonymous

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
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 10 years ago

FrédéricC gravatar image

Like that ?

sage: R = BooleanPolynomialRing(3, 'x')
sage: x, y, z = R.gens()
sage: (x * y).degree()
2
sage: (x * y * z).degree()
3
Preview: (hide)
link

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

Stats

Asked: 10 years ago

Seen: 402 times

Last updated: Aug 09 '14