NLA-lib Explorer

NLAlib.Computation.IsBinaryRep.neg

Library · theorem

Negation preserves finite binary representability and its exponent range.

NLAlib.Computation.IsBinaryRep.neg {fmt : Float.Model.Format} {x : ℝ}
  (hx : Computation.IsBinaryRep fmt x) : Computation.IsBinaryRep fmt (-x)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.BinaryFloat.