Documentation

Projects.Util.Complex

noncomputable def Complex.sqrt (x : ) :
Equations
Instances For
    def Complex.nnr (x : ) :
    Equations
    Instances For
      @[simp]
      theorem Complex.norm_mk {a b : } :
      { re := a, im := b } = (a ^ 2 + b ^ 2)
      theorem Complex.sqrt_eq_iff_eq_sq_of_nnr {a b : } (h₁ : a.nnr) (h₂ : b.nnr) :
      a.sqrt = b a = b ^ 2
      theorem Complex.sqrt_re_of_nnr {a : } (h : a.nnr) :
      theorem Complex.sqrt_im_of_nnr {a : } (h : a.nnr) :
      a.sqrt.im = 0
      theorem Complex.ofNat_eq {n : } :
      OfNat.ofNat n = n
      @[simp]
      theorem Complex.nnr_nat {n : } :
      @[simp]
      theorem Complex.nnr_natCast {n : } :
      (↑n).nnr
      @[simp]
      theorem Complex.eq_of_re_eq_re {a b : } (h₁ : a.im = 0) (h₂ : b.im = 0) (h₃ : a.re = b.re) :
      a = b
      @[simp]
      theorem Complex.sq_sqrt {a : } :
      a.sqrt ^ 2 = a
      theorem Complex.nnr_add {a b : } (ha : a.nnr) (hb : b.nnr) :
      (a + b).nnr
      theorem Complex.nnr_mul {a b : } (ha : a.nnr) (hb : b.nnr) :
      (a * b).nnr
      theorem Complex.sqrt_mul_of_nnr {a b : } (ha : a.nnr) (hb : b.nnr) :
      (a * b).sqrt = a.sqrt * b.sqrt
      theorem Complex.sqrt_sq_of_nnr {a : } (h : a.nnr) :
      (a ^ 2).sqrt = a
      @[simp]