[sage-devel] Re: .coefficient() inconsistency

2012-03-26 Thread Ben Hutz
opps, I should have read the docs on that one. On Mar 26, 1:14 am, Simon King wrote: > Hi Ben, > > On 2012-03-26, Ben Hutz wrote: > > > In working with polynomials > > > R.=PolynomialRing(ZZ) > > F=x^2*y-2*x^2-x > > print F.coefficients()[0].parent() > > print F.coefficient({x:2,y:1}).parent() >

Re: [sage-devel] Re: .coefficient() inconsistency

2012-03-26 Thread Martin Albrecht
On Monday 26 Mar 2012, Simon King wrote: > Hi Ben, > > On 2012-03-26, Ben Hutz wrote: > > In working with polynomials > > > > R.=PolynomialRing(ZZ) > > F=x^2*y-2*x^2-x > > print F.coefficients()[0].parent() > > print F.coefficient({x:2,y:1}).parent() > > > > The first returns the base ring (Z

[sage-devel] Re: .coefficient() inconsistency

2012-03-25 Thread Simon King
Hi Ben, On 2012-03-26, Ben Hutz wrote: > In working with polynomials > > R.=PolynomialRing(ZZ) > F=x^2*y-2*x^2-x > print F.coefficients()[0].parent() > print F.coefficient({x:2,y:1}).parent() > > The first returns the base ring (ZZ) and the second the multivariable > polynomial ring. The documen