NLA-lib Explorer

NLAlib.Computation.absRelErr_float_div

Library · theorem

Native binary64 division has mixed error on a finite result. [Higham2002, §2.2].

NLAlib.Computation.absRelErr_float_div (x y : Computation.FiniteFloat)
  (hf : (↑x / ↑y).isFinite = true) :
  Computation.AbsRelErr Float.Model.Format.binary64.unitRoundoff
    Float.Model.Format.binary64.underflowBound
    (Computation.floatDecode ↑x / Computation.floatDecode ↑y) (Computation.floatDecode (↑x / ↑y))

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.NativeFloat.