Re: t_PADIC to t_INTMOD and use of chinese()
Max Alekseyev <[email protected]>
| Newsgroups | gmane.comp.mathematics.pari.user |
|---|---|
| Message-ID | <CAJkPp5MaBOEbEJ2arUKVMdiN=nTpHK4pM1gFPnD6K1tVWbUn_A@mail.gmail.com> |
Karim, Thanks, I must have misremembered what .mod is. Luckily, I did not use it in my code. Regards, Max On Fri, Feb 14, 2025, 10:06 AM Karim Belabas < [email protected]> wrote: > * Max Alekseyev [2025-02-14 15:38]: > [...] > > Btw, > > padic2mod(x) = Mod(x, x.mod); > > looks a bit more straightforward. > > ... but quite wrong. > > ? padic2mod(5 + O(5^2)) > %1 = Mod(0, 5) > > Cheers, > > K.B. > -- > Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique > Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77 > http://www.math.u-bordeaux.fr/~kbelabas/ >