In my Sage code,
R.=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 v2+v3+1. I do n
On Mon, May 27, 2013 at 9:00 PM, Santanu Sarkar
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.=BooleanPolynomialRing(6)
>
> f=(1+x1*x2)*x0+x4*x5
> print f.monomial_coeffici
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.=BooleanPolynomialRing(6)
f=(1+x1*x2)*x0+x4*x5
print f.monomial_coefficient(x0)
--
You received this message because you are subscribed to the G