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.

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)