Expand description
Exact arithmetic for Atlas computations
This module provides exact rational arithmetic with NO floating point. All computations use exact integers and rationals to preserve mathematical structure.
§Key Types
Rational- Exact rational numbers (alias forRatio<i64>)HalfInteger- Half-integers for E₈ coordinates (multiples of 1/2)Vector8- 8-dimensional vectors with exact coordinatesRationalMatrix- Matrices with exact rational entries (for Weyl groups)
§Design Principles
- No floating point - All arithmetic is exact
- Fraction preservation - Rationals never lose precision
- Overflow detection - All operations check for overflow
- Type safety - Prevent mixing incompatible number types
Structs§
- Half
Integer - Half-integer: numbers of the form n/2 where n ∈ ℤ
- Rational
Matrix - Matrix with exact rational entries
- Rational
Vector - N-dimensional vector with exact rational coordinates
- Vector8
- 8-dimensional vector with exact coordinates
Type Aliases§
- Rational
- Exact rational number (fraction)