Edit

kc3-lang/kc3/doc/1_KC3/1.12_Complex.en.md

Branch :

  • doc/1_KC3/1.12_Complex.en.md
  • # 1.12 Complex
    
    Complex numbers are supported in KC3 through the `Complex` type and
    the `+i` infix operator.
    
    ## 1.12.1 Examples
    
    ```elixir
    ikc3> i = 0 +i 1
    0 +i 1
    ikc3> ii = i * i
    -1 +i 0
    ikc3> iii = i +i i
    -1 +i 1
    ikc3> type(i)
    Complex