Ask Your Question
0

How to count degree of a monomial in boolean polynomial

asked 2014-08-09 01:32:20 -0600

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
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2014-08-09 07:21:38 -0600

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
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

Stats

Asked: 2014-08-09 01:32:20 -0600

Seen: 75 times

Last updated: Aug 09 '14