(self: Expression)
| 1479 | 'Sums, differences, products and integer powers of classes of one modulus are classes. An exact integer or rational next to a class is read in its ring: `ResidueClass(5, 7) + 3` is `ResidueClass(1, 7)`. A float is not. Arithmetic on classes of different moduli stays unevaluated. The inverse, a division and a negative power need a unit: when `gcd(k, n) ≠ 1` they stay unevaluated.', |
| 1480 | 'Classes are not ordered, and `Mod` is not this: `Mod(7, 5)` is the integer remainder 2. The elements of `QuotientRing(Integers, n)` are the classes `ResidueClass(0, n)` … `ResidueClass(n - 1, n)`.', |
| 1481 | 'LaTeX: `\\overline{k}_{n}`, for integer literals `k` and `n ≥ 1`.', |
| 1482 | ], |
| 1483 | complexity: 1200, |
| 1484 | // `any` for both: a call that is not a class of ℤ/nℤ (`k` a float or a |
| 1485 | // symbol, `n` symbolic or not a positive integer) stays inert, as |
| 1486 | // `QuotientRing` does, and a free `k` or `n` is not inferred an integer. |
nothing calls this directly
no test coverage detected