Karim BELABAS on Mon, 14 Feb 2000 18:42:47 +0100 (MET)


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

Re: suspicious piece of code


[Igor:]
> Casper Dik pointed me to a suspicious place in base4.c Function
> idealappr0() contains nested for-loops in the same variable (i).  I
> bet at least one of them was meant to be a loop in variable j.

The code is horrible but correct (we return from the function after the
internal loop, i.e we don't complete the external one). I'm making it more
readable.

    Karim.
__
Karim Belabas                    email: Karim.Belabas@math.u-psud.fr
Dep. de Mathematiques, Bat. 425
Universite Paris-Sud             Tel: (00 33) 1 69 15 57 48
F-91405 Orsay (France)           Fax: (00 33) 1 69 15 60 19
--
PARI/GP Home Page: http://hasse.mathematik.tu-muenchen.de/ntsw/pari/