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 an "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.101 x86.64 (2282, heads/master-8ccbe0b4ca, Sep 17 2024 12:10:25)