Quotient
The integer quotient of by — for Gaussian integers, rounded to the nearest lattice point.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Quotient!Quotient(m, n) for integers; rounded half-even in each part for Gaussian integersOscar
fld(ZZ(m), ZZ(n))Typed signatures
| Type | Package | Applies |
|---|---|---|
(number, number, number?) -> number | number-theory | always |
Details
- For integers, , so with the remainder taking the sign of .
- For Gaussian integers the quotient rounds instead, ties to even, which is what makes Euclidean: the remainder then has smaller norm than .
- compute-engine has no Quotient; this follows Wolfram's.
Examples
25 more kept as data, checked against the oraclesScope #
About
| Examples | 36 |
|---|---|
| Checked against | Wolfram Language 34 agree2 differOscar 5 agree |
| Crosswalk | Wolfram LanguageOscar |
Implementation
mapped
oscarpackages/oracle/src/mappings.tsmapped
wolframpackages/oracle/src/mappings.tsmapped
wolframpackages/oracle/src/mappings.ts