Macaulay2 » Documentation
Packages » Padic » PadicNumber » PadicNumber << ZZ » PadicNumber >> ZZ
next | previous | forward | backward | up | index | toc

PadicNumber >> ZZ -- divide a p-adic number by a power of p

Description

Returns $x / p^n = x \cdot p^{-n}$, shifting the $p$-adic expansion right by $n$ places. A negative shift multiplies by $p^{|n|}$.

i1 : QQ_7 3 >> 2

o1 = 3*7^-2

o1 : QQ  (of precision 20)
       7
i2 : QQ_7 3 >> -1

o2 = 3*7^1

o2 : QQ  (of precision 20)
       7

See also

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Padic.m2:793:0.