Complex numbers
Up:Numbers, The language, Factor handbook
Prev:Floats
Next:Vector arithmetic

complex
Complex numbers arise as solutions to quadratic equations whose graph does not intersect the x axis. Their literal syntax is covered in Complex number syntax.

Complex numbers can be taken apart:
real-part ( z -- x )
imaginary-part ( z -- y )
>rect ( z -- x y )
Complex numbers can be constructed from real numbers:
rect> ( x y -- z )
Embedding of real numbers in complex numbers

See also
Complex number syntax