In mathematics, arg is a function operating on complex numbers (visualized in a complex plane). It gives the angle between the positive real axis to the line joining the point to the origin, shown as φ in figure 1, known as an argument of the point.
An argument of the complex number z = x + iy, denoted arg(z), is defined in two equivalent ways:
The names magnitude, for the modulus, and phase, for the argument, are sometimes used equivalently.
Under both definitions, it can be seen that the argument of any non-zero complex number has many possible values: firstly, as a geometrical angle, it is clear that whole circle rotations do not change the point, so angles differing by an integer multiple of 2π radians (a complete circle) are the same, as reflected by figure 2 on the right. Similarly, from the periodicity of sin and cos, the second definition also has this property. The argument of zero is usually left undefined.
Because a complete rotation around the origin leaves a complex number unchanged, there are many choices which could be made for φ by circling the origin any number of times. This is shown in figure 4, a representation of the multi-valued (set-valued) function , where a vertical line (not shown in the figure) cuts the surface at heights representing all the possible choices of angle for that point.