NLAlib.Computation.relErr_roundNearest
Library · theorem
Rounding to nearest has relative error at most 2^{-t}: \mathrm{fl}(\mathbf{x}) = \mathbf{x}(1 + \delta) for some \lvert \delta \rvert \le 2^{-t}. [Higham2002, Theorem 2.2].
NLAlib.Computation.relErr_roundNearest (t : ℕ) (x : ℝ) :
Computation.RelErr (2⁻¹ ^ t) x (Real.roundNearest t x)Import NLAlib.Matrix.FinitePrecision.GridMachine.