The argument of a complex number. #
We define arg : ℂ → ℝ, returning a real number in the range $(-π, π]$,
such that for x ≠ 0, sin (arg x) = x.im / x.abs and cos (arg x) = x.re / x.abs,
while arg 0 defaults to 0
@[simp]
@[simp]
@[simp]
@[simp]
This holds true for all x : ℂ because of the junk values 0 / 0 = 0 and arg 0 = 0.
theorem
Complex.arg_of_im_nonneg_of_ne_zero
{z : ℂ}
(h₁ : 0 ≤ z.im)
(h₂ : z ≠ 0)
:
z.arg = Real.arccos (z.re / ‖z‖)
@[simp]
@[simp]
@[simp]
Alias of the reverse direction of Complex.arg_mul_eq_add_arg_iff.
An alternative description of the slit plane as consisting of nonzero complex numbers whose argument is not π.
theorem
Complex.continuousAt_arg_coe_angle
{x : ℂ}
(h : x ≠ 0)
:
ContinuousAt (Real.Angle.coe ∘ arg) x