Chapter 4. Complex Numbers

Complex numbers are used with the variables j or i. This is defined as being the square root of -1.

    
> 1+i
(1.0 + i)
> i^2
-1.0
> i^3
-1.0i
> i^4
1.0
> (1+i)*(1-j)
2.0i