[sage-support] Re: testing the value of coefficients of a pollynomial

2007-09-26 Thread William Stein
On 9/26/07, David Stahl <[EMAIL PROTECTED]> wrote: > > I am trying to determine whether the coefficient of a particular > variable is equal to zero. I am using SAGE 2.8 in Win2000 using the > SAGE Notebook. My working example is below including the output. > Thank you. Thanks. In the context

[sage-support] Re: testing the value of coefficients of a pollynomial

2007-09-26 Thread David Stahl
I am trying to determine whether the coefficient of a particular variable is equal to zero. I am using SAGE 2.8 in Win2000 using the SAGE Notebook. My working example is below including the output. Thank you. David R1 = PolynomialRing(RationalField(),4, ["x4","x3","x2","x1"], "lex") x4,x3,x2

[sage-support] Re: testing the value of coefficients of a pollynomial

2007-09-26 Thread didier deshommes
2007/9/26, David Stahl <[EMAIL PROTECTED]>: > > I am trying to find what variables have zero as a coefficient and have > been unsuccessful. Here is what I tried: > > I2=I.groebner_basis() > f=SR(I2[0]) > g=f.coeff() > print g > 0 At first glance, g=='0' asks whether g is equal to 0 as a *s

[sage-support] Re: testing the value of coefficients of a pollynomial

2007-09-26 Thread William Stein
On 9/26/07, David Stahl <[EMAIL PROTECTED]> wrote: > I am trying to find what variables have zero as a coefficient and have > been unsuccessful. Here is what I tried: > > I2=I.groebner_basis() > f=SR(I2[0]) > g=f.coeff() > print g > 0 > print g=='0' > False > > groebner_basis(), SR(), a