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

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2173, heads/master-f3ee5c5979, Sep 18 2022 13:17:51)