Karim Belabas on Tue, 29 Jan 2013 15:33:35 +0100


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

Re: Is this a bug ?


* Ewan Delanoy [2013-01-29 15:14]:
>  ? polcoeff(8*a+9*b,1,b)
>  %2 = 9
>  ? (polcoeff(8*a+9*b,1,b))%4
>  %3 = 0

The last division takes place in Q[a], in which 4 is invertible. You
probably want to do something like
  n = simplify( polcoeff(8*a+9*b,1,b) );
  n % 9

Cheers,

    K.B.
--
Karim Belabas, IMB (UMR 5251)  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-bordeaux1.fr/~belabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux1.fr/  [PARI/GP]
`