[GAP Forum] Coefficients of constant polynomials
hulpke at mac.com
Fri Mar 3 16:07:39 GMT 2006
> When I apply the function "CoefficientsOfUnivariatePolynomial" to the
> unit polynomial I get the result [ 1 ], as expected:
> For the zero polynomial, however, it returns an empty set:
Yes. the zero polynomial is stored by an empty coefficient list, as
there are no nonzero coefficients.
> Why isn't the result [ 0 ] ?
Because storing the zero polynomial that way would require extra
treatment in some arithmetic routines (e.g. multiplication).
> Could this be a bug?
No. This is intended.
> Play 100s of games for FREE! http://crappy.advertising.dump/
More information about the Forum