Skip to content

AdicDigits ​

The digits of a AdicNumeral as a list, least significant first — the only order that lists something with no left end.

AdicDigits(x, count?)the first count digits (default 20), least significant first
SageMathlist((x).unit_part().expansion())[:count?]
Typed signatures
TypePackageApplies
(value, integer?) -> list<integer>numeralsalways

Domain: Numeral systems

Examples

11 more kept as data, checked against the oracles
Basic #

Least significant first — the trailing 7 of …6667…6667 comes first

live ↗
InAdicDigits(AdicNumeral(10,13),6)\mathrm{AdicDigits}(\mathrm{AdicNumeral}(10, \frac{1}{3}), 6)Out[7,6,6,6,6,6]\bigl\lbrack7, 6, 6, 6, 6, 6\bigr\rbrack
About
Examples12
Checked againstSageMath 11 agree1 error
CrosswalkSageMath

Implementation

mappedsagepackages/oracle/src/mappings.ts

A capped operand or x = 0 has no unit_part() in Sage; only exact non-zero x scans.

See also: AdicExpansion, AdicNumeral