Complex interval arithmic (on top of 64-bit fixed point intervals) #
Equations
Equations
- Box.instRepr = { reprPrec := fun (z : Box) (x : ℕ) => Std.Format.text "(" ++ repr z.re ++ Std.Format.text " + " ++ repr z.im ++ Std.Format.text "i⟩" }
Box approximates ℂ as an additive group
Equations
- One or more equations did not get rendered due to their size.
Box approximates ℂ as a ring
Equations
- One or more equations did not get rendered due to their size.
Multiplication and division by I #
Square magnitude #
theorem
Box.approx_normSq'
{z : Box}
{z' : ℂ}
(m : approx z z')
:
approx z.normSq (Complex.normSq z')
normSq is conservative