NLA-lib Explorer

NLAlib.Computation.AbsRelErr.abs_sub_sqrt_le_of_sq

Library · theorem

A nonnegative squared cache with mixed error gives a norm error bounded by \alpha r+\sqrt E, for r\ge0, \alpha\ge0 and E\ge0. The absolute term is retained even when the true norm is zero.

NLAlib.Computation.AbsRelErr.abs_sub_sqrt_le_of_sq {α E r s : ℝ}
  (h : Computation.AbsRelErr α E (r ^ 2) s) (hr : 0 ≤ r) (hs : 0 ≤ s) (hα : 0 ≤ α) (hE : 0 ≤ E) :
  |r - √s| ≤ α * r + √E

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.NormalizationErrors.