Complex numbers - Factor Documentation (original) (raw)
Complex numbers
Factor handbook » The language » Numbers
Prev: | Floats |
---|---|
Next: | Vector operations |
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:
imaginary-part ( z -- y )
>rect ( z -- x y )
Complex numbers can be constructed from real numbers:
Embedding of real numbers in complex numbers
See also
Complex number syntax