Ask Your Question
0

How to count degree of a monomial in boolean polynomial

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

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
2

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

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 08:32:20 +0100

Seen: 355 times

Last updated: Aug 09 '14