Complex

abs function

Returns the absolute value of the argument.

Syntax

abs(z)

Description

The abs function returns the absolute or numeric value of z, commonly written as |z|. z may be any numeric expression that evaluates to a real number or a complex number. abs(z) always returns a positive real value.

arg function

Returns the argument of the parameter.

Syntax

arg(z)

Description

The arg function returns the argument or angle of z. z may be any numeric expression that evaluates to a real number or a complex number. arg(z) always returns a real number. The result may be in radians or degrees depending on the current settings. The angle is always between -π and π. If z is a real number, arg(z) is 0 for positive numbers and π for negative numbers. arg(0) is undefined.

conj function

Returns the conjugate of the argument.

Syntax

conj(z)

Description

The conj function returns the conjugate of z. z may be any numeric expression that evaluates to a real number or a complex number. The function is defined as: conj(z) = re(z) - i*im(z).

re function

Returns the real part of the argument.

Syntax

re(z)

Description

The re function returns the real part of z. z may be any numeric expression that evaluates to a real number or a complex number.

im function

Returns the imaginary part of the argument.

Syntax

im(z)

Description

The im function returns the imaginary part of z. z may be any numeric expression that evaluates to a real number or a complex number.