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.100 x86.64 (2240, heads/master-b90c89f82e, Sep 26 2023 19:59:25)