Complex numbers (OpenDocument compatibility)

OpenDocument-compatible (and Microsoft Excel) complex numbers are represented by text strings, where lower-case suffixes i or j denote the imaginary part.

Example:

"0+1i"

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.

Fireworkz "C_"-prefixed complex number functions may be used in addition to the compatibility "ODF.IM"-prefixed complex number functions.