Macaulay2 » Documentation
Packages » Padic » PadicNumber » abs(PadicNumber)
next | previous | forward | backward | up | index | toc

abs(PadicNumber) -- p-adic absolute value

Description

Returns the $p$-adic absolute value $|x|_p = p^{-\nu_p(x)}$.

i1 : abs QQ_7 49

      1
o1 = --
     49

o1 : QQ
i2 : abs QQ_7(1/7)

o2 = 7
i3 : abs QQ_7 0

o3 = 0

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:747:0.