[GAP Forum] Re: Coefficients of constant polynomials

Anvita anvita21 at usa.com
Mon Mar 6 02:03:43 GMT 2006


>> If the function  "CoefficientsOfUnivariatePolynomial" is applied to the
>> unit polynomial, the result is [ 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.
>

If the zero polynomial is stored as an empty list then why does the function
"UnivariatePolynomial" return an error with an empty list as the second
argument?

---------------------------------------------------------------------------------------
gap> p:=UnivariatePolynomial(Integers,[]);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `UnivariatePolynomial' on 2 arguments called from
<function>( <arguments> ) called from read-eval-loop
Entering break read-eval-print loop ...
you can 'quit;' to quit to outer loop, or
you can 'return;' to continue
brk>
---------------------------------------------------------------------------------------


Anvita


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




More information about the Forum mailing list