Karim Belabas on Tue, 9 Mar 1999 11:29:18 +0100 (MET)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: pari-2.0.14 bugs (poldiscreduced)


[me pari-dev-465:]
> Bug 3 is also of this sort, although the error message could be more
> explicit, and the documentation ought to mention it: the polynomial has
> to be integral and monic. Here's a cosmetic patch:

The patch broke the function. Please apply the following one
instead.

  Karim.

*** src/basemath/polarit2.c.orig	Tue Mar  9 11:17:35 1999
--- src/basemath/polarit2.c	Tue Mar  9 11:21:41 1999
***************
*** 2114,2119 ****
--- 2114,2122 ----
    if (typ(pol)!=t_POL) err(typeer,"reduceddiscsmith");
    n=lgef(pol)-3;
    if (n<=0) err(constpoler,"reduceddiscsmith");
+   check_pol_int(pol);
+   if (!gcmp1((GEN)pol[n+2]))
+     err(talker,"non-monic polynomial in poldiscreduced");
    polp = derivpol(pol); alpha = polx[varn(pol)];
    m=cgetg(n+1,t_MAT);
    for (j=1; j<=n; j++)
--
Karim Belabas                    email: Karim.Belabas@math.u-psud.fr
Dep. de Mathematiques, Bat. 425
Universite Paris-Sud             Tel: (33 1) 01 69 15 57 48
F-91405 Orsay (France)           Fax: (33 1) 01 69 15 60 19
--
PARI/GP Home Page: http://hasse.mathematik.tu-muenchen.de/ntsw/pari/