[GAP Forum] function UnivariatePolynomial is destructive

Alexander Konovalov alexk at mcs.st-and.ac.uk
Tue Aug 2 14:58:22 BST 2005


Dear Dr. R.N.Tsai,

Thank you very much for reporting this. This is already fixed in 
GAP 4.4.5, so please upgrade your system. Since you already have GAP 
4.4.4, it is enough to get fix4r4p5 archive from the page
http://www.gap-system.org/Download/upgrade.html 

Sincerely yours,
Alexander Konovalov


On Thu, 28 Jul 2005, R.N. Tsai wrote:

> Dear gap forum
>  
> I just noticed that the function "UnivariatePolynomial" changes its input argument :
>  
> gap> c:=[0,1,2,3,0];
> [ 0, 1, 2, 3, 0 ]
> gap> p:=UnivariatePolynomial(Integers,c);
> 3*x_1^3+2*x_1^2+x_1
> gap> c;
> [ 1, 2, 3 ]
> 
> I found a workaround  p:=UnivariatePolynomial(F,StructuralCopy(c),1); but I think
> it might be more "natural" to make it nondistructive by default.
>  
> Regards,
>  
> R.N.
> 
> 		
> ---------------------------------
>  Start your day with Yahoo! - make it your home page 
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum
> 




More information about the Forum mailing list