Complex numbers

Complex numbers[1] in Fireworkz are usually represented by a 1×2 array or range.

Example:

{0,1}

may be used to represent the complex number i, the square root of -1.

Complex numbers should always be manipulated using the appropriate complex number function.

A single real number may be passed to complex number functions, where it behaves as the real part of a complex number with an imaginary part of zero.

Revisions:

Starting with 2.00, Fireworkz also allows the use of OpenDocument / Microsoft Excel-style complex number strings, where lower-case suffixes i or j denote the imaginary part.

Example:

"2-3i"
  1. Weisstein, Eric W. "Complex Number." From MathWorld--A Wolfram Web Resource. http://mathworld.wolfram.com/ComplexNumber.html