t_PADIC to t_INTMOD and use of chinese()

Max Alekseyev <[email protected]>
Newsgroups gmane.comp.mathematics.pari.user
Message-ID <CAJkPp5P7pSEF9nxYt24EVujTyWhQoz5f_dnp+wzpw90+A+Q8Wg@mail.gmail.com>
dueHello,

I have a couple of requests:

1) An easy way to convert t_PADIC to t_INTMOD, maybe extending Mod() to
support a single argument of type t_PADIC, e.g. Mod(1 + O(5^2)) would
produce Mod(1, 25).

2) Extend chinese() to support t_PADIC arguments (still producing t_INTMOD).

Thanks,
Max
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.