Rational enclosures for interval_dyadic_real #
This file defines inclusion operations for the interval_dyadic_real inclusion family which
define dyadic interval enclosures for rational numbers.
The precision of dyadic approximations, defaulting to zero.
Equations
Instances For
Efficiently enclose m / d in a dyadic interval with precision prec.
Equations
- One or more equations did not get rendered due to their size.
Instances For
m / d rounded down to precision prec (the lower endpoint of natDiv m d prec). Unlike
(m / d : ℚ).toDyadic prec, this does not normalise the fraction m / d and so avoids a
potentially very expensive Nat.gcd computation.
Equations
- Inclusion.IntervalDyadicReal.natDivLower m d prec = Dyadic.ofIntWithPrec ↑(m <<< prec / d) ↑prec
Instances For
Enclose a scientific literal in a dyadic interval with precision prec.
Equations
- Inclusion.IntervalDyadicReal.scientific m s e prec = if s = true then Inclusion.IntervalDyadicReal.natDiv m (10 ^ e) prec else Inclusion.Interval.singleton (↑m * 10 ^ e)