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:
{{NumBlk|:||}}
Therefore, arg(0 + i0) is sometimes defined as 0, for the sake of uniqueness. However, solving for gives:
Arg of rational complex numbers
If z1 and z2≠0 are two complex numbers then:
E.g.:
Notes
External links
This article is licensed under the GNU Free Documentation License.
Last updated on Saturday July 26, 2008 at 16:37:12 PDT (GMT -0700)
View this article at Wikipedia.org - Edit this article at Wikipedia.org - Donate to the Wikimedia Foundation
Copyright © 2008, Dictionary.com, LLC. All rights reserved.











