[GAP Forum] Coefficients of constant polynomials

Anvita anvita21 at usa.com
Fri Mar 3 05:11:01 GMT 2006



Dear Forum,

When I apply the function  "CoefficientsOfUnivariatePolynomial" to the

unit polynomial I get the result [ 1 ], as expected:



-----------------------------------------------

gap> R:=PolynomialRing(Integers,["x"]);

PolynomialRing(..., [ x ])

gap> i:=One(R);

1

gap> CoefficientsOfUnivariatePolynomial(i);

[ 1 ]

-----------------------------------------------



For the zero polynomial, however, it returns an empty set:



-----------------------------------------------

gap> o:=Zero(R);

0

gap> CoefficientsOfUnivariatePolynomial(o);

[  ]

-----------------------------------------------



Why isn't the result [ 0 ] ?  

Could this be a bug?



Thank you
Anvita



-- 
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/




More information about the Forum mailing list