unit xEvery $x\in\QQ_p$ can be decomposed into a product $x=up^\nu$, where $u\in\ZZ_p^\times$, i.e., it is a unit in the ring of $p$-adic integers. This function returns $u$ as an integer.
|
|
Note that in general, $u$ has infinitely many $p$-adic digits. Therefore, it is truncated based on the precision of $x$.
|
|
The object unit is a method function.
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Padic.m2:565:0.