- Arg (mathematics)
In
mathematics the arg function is a logical function that extracts the angular component of acomplex number or function.An alternative definition is available atComplex argument (continued fraction) . The essential difference is the treatment of arg("0" + "i0").] The angular component is also referred to as the "argument". Forreal numbers "x" and "y", arg("x" + "iy") is equivalent to a function used in three computer languages calledatan2 ("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,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.
arg(0 + i 0)
When x and y are both zero, and any angle satisfies:
Therefore, arg(0 + "i" 0) is sometimes defined as 0, for the sake of uniqueness. However, solving EquationNote|Eq.1 for gives:
: which is indeterminate/undefined when r=0. In this viewpoint, arg("x" + "i y") is not necessarily perceived as an angle.
Arg of rational complex numbers
If z1 and z2≠0 are two complex numbers then:
:
E.g.::
Notes
External links
*MathWorld|title=ComplexArgument|urlname=ComplexArgument
Wikimedia Foundation. 2010.