Arg (mathematics)
From Wikipedia, the free encyclopedia
In mathematics the arg function is a logical function that extracts the angular component of a complex number or function.[1] The angular component is also referred to as the argument. For real numbers x and y, arg(x + iy) is equivalent to the function atan2(y, x), which is constrained to the range (−π, π]. That is, for y ≠ 0:
where is the angle in [0,π/2) such that: And sgn is the sign function.
And:
This produces results in the range (−π, π], which can be mapped to [0, 2π) by adding 2π to the negative values.
arg is also used less formally to represent an unconstrained angle. For instance, when:
- is a continuous function of time (such as ,
- and (called exponential form),
- or (called trigonometric form),
arg(z(t)) often denotes the continuous function,
Contents |
[edit] Alternative implementation
If is readily available, a potentially simpler implementation of arg(x + iy) is also available.
For y ≠ 0:
where is the angle in [0,π) such that:
And is defined as before.
[edit] arg(0 + i 0)
When x and y are both zero, and any angle satisfies:
-
(Eq.1)
Therefore, arg(0 + i0) is sometimes defined as 0, for the sake of uniqueness. However, solving Eq.1 for gives:
which is indeterminate/undefined when r=0. In this viewpoint, arg(x + iy) is not necessarily perceived as an angle.[1]
[edit] Notes
- ^ a b An alternative definition is available at Complex argument (continued fraction). The essential difference is the treatment of arg(0 + i0).