Karim Belabas on Thu, 11 Oct 2007 00:21:51 +0200


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

Re: How recovering the b in Mod(a,b)?


* mehnert@math.uni-sb.de [2007-10-11 00:08]:
> 
> I have a may be very simple Problem. If I know x = Mod(a,b), then with "lift" I
> can recover a, but how do I recover b? Thank you for any Answer.

Depending on how recent your version of gp is: either

  component(x, 1)   [old]

or

  x.mod   [new]

Cheers,

    K.B.
--
Karim Belabas                  Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1          Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~belabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]
`