Algosim documentation: arg

arg

The argument of a complex number.

Syntax

Description

If z is a complex number, arg(z) is the argument of z, that is, the angle that z makes in the counter-clockwise direction from the positive real axis in the Argand diagram, normalised to (-π, π]. By definition, arg(0) is 0.

Examples

arg(0)
0
arg(i)
1.57079632679	(=π/2)
arg(−1)
3.14159265359	(=π)
arg(arccosh(i))
1.05947111646

See also