( col: Expression )
| 1495 | }, |
| 1496 | n: { |
| 1497 | description: 'The modulus, an exact integer literal ≥ 1.', |
| 1498 | sample: '5', |
| 1499 | }, |
| 1500 | }, |
| 1501 | // A class is a value of a VALUE KIND: this registers `residue` as a kind |
| 1502 | // type in every engine, which is what the recognition of a class reads |
| 1503 | // (`holdsKindValue()`, `residue-class.ts`). The hooks are the residue |
| 1504 | // arithmetic (`RESIDUE_CLASS_ARITHMETIC`). |
| 1505 | arithmetic: RESIDUE_CLASS_ARITHMETIC, |
| 1506 | // Lazy, so that `.N()` does not approximate the operands first: a class |
| 1507 | // is exact, and `ResidueClass(q, 7)` with `q = 1/3` is |
| 1508 | // `ResidueClass(5, 7)` under `.N()` as under `evaluate()`. |
| 1509 | lazy: true, |
| 1510 | canonical: (ops, { engine: ce }) => { |
| 1511 | const args = checkArity( |
| 1512 | ce, |
| 1513 | ops.map((x) => x.canonical), |
nothing calls this directly
no test coverage detected