NLAlib.Computation.relErr_binaryFloatRound_of_minExponent_le
Library · theorem
In the normal range the binary quantizer has pure relative error at most 2^{-p}. The hypothesis says that the normal significand exponent is no smaller than the format's smallest exponent; no absolute underflow term is needed. [Higham2002, Theorem 2.2].
NLAlib.Computation.relErr_binaryFloatRound_of_minExponent_le (fmt : Float.Model.Format) {r : ℝ → ℤ}
(hr : ∀ (x : ℝ), Computation.AbsRelErr 0 (1 / 2) x ↑(r x)) (x : ℝ)
(hnormal : fmt.minExponent ≤ Int.log 2 |x| + 1 - ↑fmt.mantissaBits) :
Computation.RelErr (2⁻¹ ^ fmt.mantissaBits) x (Computation.binaryFloatRound fmt r x)Import NLAlib.Matrix.FinitePrecision.BinaryFloat.