Complex number syntax

Factor handbook » The language » Syntax » Literals » Number syntax

Factor handbook » The language » Syntax » Literals » Number syntax

Prev: | Float syntax |

A complex number is given by two components, a “real” part and “imaginary” part. The components must either be integers, ratios or floats.

More information on complex numbers can be found in Complex numbers.

C{ 1/2 1/3 } ! the complex number 1/2+1/3i
C{ 0 1 } ! the imaginary unit

C{

More information on complex numbers can be found in Complex numbers.