Karim Belabas on Wed, 16 Jun 2004 11:18:22 +0200


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

Re: Divisors bug in GP


* Phil Carmody [2004-06-16 10:38]:
> I'm using an AFAICT undocumented call to divisors() with a 
> factorisation as a parameter, rather than a single number. 
> If this interface doesn't officially exist, I'd like to 
> request that it be realised, as I could make very good use 
> of it presently.

It is documented (in 2.2.8, CHANGES-1.951 at least) :

(11:01) gp > ??divisors 
divisors(x):

   creates  a  row  vector  whose  components  are the positive divisors of the
integer x in increasing order. The factorization of x (as output by factor) can
be used instead.

   The library syntax is divisors(x).

> Anyway, it seems to 'break' its parameter.

Right. I have fixed the problem in CVS.

Thanks,

    Karim.
-- 
Karim Belabas                     Tel: (+33) (0)1 69 15 57 48
Dep. de Mathematiques, Bat. 425   Fax: (+33) (0)1 69 15 60 19
Universite Paris-Sud              http://www.math.u-psud.fr/~belabas/
F-91405 Orsay (France)            http://pari.math.u-bordeaux.fr/  [PARI/GP]