Next / Previous / Contents / TCC Help System / NM Tech homepage

6.3. The complex type

A complex number has two parts, a real component and and imaginary component.

To refer to the components of an imaginary number I:

I.realThe real component of I.
I.imagThe imaginary component.

Functions:

complex(r[,i])

The r argument is the real component, and the i second argument is the imaginary component. Each argument can be either a string or a number. For example, complex(3.2,4.9) produces the value (3.2+4.9j).