Function reference · Complex

arg

Returns the principal argument of a complex expression.

The argument is computed from the real and imaginary components using quadrant-aware atan2 behavior. Pure imaginary axis cases are handled explicitly.

Examples

These examples use Nerdamer Notation.

Return the principal angle of 1+i.

arg(1+i)
// → (1/4)*pi

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

arg(arg1)

nerdamer.arg

Call the operation through the default nerdamer import.

nerdamer.arg(x: ExpressionInput): Expression

Parameters

NameTypeDescription
xExpressionInput

Returns

Expression

Browse the nerdamer API →

← Back to Reference