[sage-support] Coefficient of Boolean Polynomial

2014-11-17 Thread Santanu Sarkar
In my Sage code, R.v1, v2, v3=BooleanPolynomialRing(3) f=v1*v2+v1*v3+v1 print f.coefficient(v1) I am getting Traceback (click to the left of this block for traceback) ... AttributeError: 'sage.rings.polynomial.pbori.BooleanPolynomial' object has no attribute 'coefficient' Answer should be

[sage-support] Coefficient of Boolean Polynomial

2013-05-27 Thread Santanu Sarkar
Dear all, In the following code, although the coefficient of x0 is 1+x1*x2, it returns 1. from sage.crypto.boolean_function import BooleanFunction R.x0,x1,x2,x3,x4,x5=BooleanPolynomialRing(6) f=(1+x1*x2)*x0+x4*x5 print f.monomial_coefficient(x0) -- You received this message because you are

Re: [sage-support] Coefficient of Boolean Polynomial

2013-05-27 Thread David Joyner
On Mon, May 27, 2013 at 9:00 PM, Santanu Sarkar sarkar.santanu@gmail.com wrote: Dear all, In the following code, although the coefficient of x0 is 1+x1*x2, it returns 1. from sage.crypto.boolean_function import BooleanFunction R.x0,x1,x2,x3,x4,x5=BooleanPolynomialRing(6)