Skip to content

ResidueSystem ​

The old spelling of ResidueNumerals, kept working: ResidueSystem(moduli) evaluates to its canonical form.

ResidueSystem(moduli)same as ResidueNumerals(moduli)
Typed signatures
TypePackageApplies
(list<integer>) -> valuenumeralsalways

Domain: Numeral systems

Examples

Basic #

Evaluates to ResidueNumerals

live ↗
InResidueSystem([7,11])\mathrm{ResidueSystem}(\bigl\lbrack7, 11\bigr\rbrack)OutResidueNumerals([7,11])\mathrm{ResidueNumerals}(\bigl\lbrack7, 11\bigr\rbrack)

42 mod 742 \bmod 7 and 42 mod 1142 \bmod 11

live ↗
InIntegerDigits(42,ResidueSystem([7,11]))\mathrm{IntegerDigits}(42, \mathrm{ResidueSystem}(\bigl\lbrack7, 11\bigr\rbrack))Out[0,9]\bigl\lbrack0, 9\bigr\rbrack
About
Examples2

See also: ResidueNumerals