previous up next
Go backward to Definition
Go up to Top
Go forward to Example
RISC-Linz logo

Complex Number Operations

Constants
0 := 0R+0Ri; 1 := 1R+0Ri; 2 := 2R+0Ri; i := 0R+1Ri.
Arithmetic
x + y := (x0 +R y0) + (x1 +R y1)i;
x - y := (x0 -R y0) + (x1 -R y1)i;
x * y := ((x0 *R y0)-R(x1 *R y1)) + ((x0 * R y1)+R(x1 *R y0))i
x / y := (((x0 *R y0) +R (x1 *R y1)) /R d) +
          (((x1 *R y0) -R (x0 * R y1)) /R d)i
                where d = (y0 *R y0) +R (y1 *R y1).

Author: Wolfgang Schreiner
Last Modification: November 16, 1999

previous up next