Loïc Grenié on Mon, 27 Oct 2014 11:04:56 +0100


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

Re: A Strange problem


2014-10-27 10:56 GMT+01:00 Allan MacLeod <Allan.MacLeod@uws.ac.uk>:
> Over the weekend, I was developing some software in Pari which needs to
> check whether rational polynomials are squares over the rationals.
>
> I used  isqsquare(polynomial,&root)
>
> At the start of the program, everything worked fine and the roots, when
> found, were rational.
>
> At a certain point, however, the roots changed to having real coefficients
> which completely screwed the code.
>
> I got round the problem by writing my own “idiot” test subroutine, which
> works fine.
>
> This problem occurred using Pari 2.7.2, Pari 2.6.0, and Pari 2.3.4.
>
> Any suggestions as to what I did wrong?

     Well, no, but I'd love to see a problematic polynomial.

         Thanks,

            Loïc