< ^ From:

> < ^ Subject:

Dear David and GAP-forum,

I think you have your meaning of x wrong:

gap> R := PolynomialRing(Rationals,["x"]); PolynomialRing(..., [ x ]) gap> x := IndeterminatesOfPolynomialRing(R)[1]; x gap> f := x^2+1; 1+x^2 gap> f in R; true

Robert F. Morse

On Sun, 2003-08-10 at 10:36, David Joyner wrote: > Hello GAP Forum: > > A minor question about the "in" command. > > Why doesn't > > gap> R := PolynomialRing(Rationals,["x"]); > PolynomialRing(..., [ x ]) > gap> > gap> f:=x^2+1; > 1+x^2 > gap> f in R; > false > > return "true"? Am I using the "in" command wrong? > > - David > >

> < [top]