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
Law of cosines in ℂ: the squared distance between a and b is expressed in terms of their
norms and the angle a.arg - b.arg between them. See Complex.norm_sub_sq_eq_norm_sub_norm_sq_add
for the half-angle form.
Law of cosines in ℂ, half-angle form: the squared distance between a and b is expressed in
terms of their norms and the half-angle (a.arg - b.arg) / 2. See
Complex.norm_sub_sq_eq_norm_sq_add_norm_sq_sub for the standard form, and
Complex.norm_exp_I_mul_ofReal_sub_one for the chord from a point of the unit circle to 1.
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]