Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 2 years ago

Max Alekseyev gravatar image

PARI/GP support p-aic numbers with non-prime p:

a = gp('1+O(10^3)')
print(a+100)
click to hide/show revision 2
No.2 Revision

PARI/GP support p-aic supports p-adic numbers with non-prime p:

This can be used inside Sage:

sage: a = gp('1+O(10^3)')
print(a+100)
gp('1 + O(10^3)')
sage: a
1 + O(10^3)
sage: a + 100
1 + 10^2 + O(10^3)