-adic integers |
-adic numbers are implemented as a variant of
the series over modular integers: the representation is the same, only
the operations differ. All the necessary definitions are gathered in
|
Naive algorithms for -adic numbers are
implemented in
The recursive power series framework extends to recursive -adic integers. In particular, the methods for solving regular linear systems or polynomial systems have been adapted to -adic integers and take into account the carries. See the documentation on Power series for more details.
Mmx] |
p == modulus 7 |
:
Mmx] |
a == p_adic (1 mod p, 1 mod p) |
:
Mmx] |
b == separable_root (a, 2) |
:
Mmx] |
b^2 |
:
Mmx] |
p_expansion (100, p) |
:
Mmx] |
p_adic (@p_expansion (100, p)) |
: