NLA-lib Explorer

NLAlib.Computation.isRoundingProduct_iff

Library · theorem

The values of a product of rounding errors [Higham2002, Lemma 3.1]: for 0 \le u < 1, 1 + \theta is a product of j factors (1 + \delta_i)^{\pm 1} with \lvert \delta_i \rvert \le u exactly when (1 - u)^j \le 1 + \theta \le (1 - u)^{-j}.

NLAlib.Computation.isRoundingProduct_iff {u : ℝ} {j : ℕ} {θ : ℝ} (hu : 0 ≤ u) (hu1 : u < 1) :
  Computation.IsRoundingProduct u j θ ↔ (1 - u) ^ j ≤ 1 + θ ∧ 1 + θ ≤ ((1 - u) ^ j)⁻¹

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.Rounding.