34 + 8i=
(A + Bi)( C + Di) =
AC + (AD+BC)i - BD =
(AC - BD) + (AD+BC)i
AC - BD = 34 <-- 1st equation
AD + BC = 8 <-- 2nd equation
subtracts in OPPOSITE order:
AD-AC + BC - -BD = 8 - 34
A(D-C) + B(C+D) = -26
A(C-D) - B(C+D) = 26 <-- 3rd equation
--------------------------------------------------
java program written to determine the A,B,C,D needed so that
the 3 equations above in bold are true for A,B,C,D = {-9,-8,-7,...,7,8,9}
The output of the program is:
aLoop=A = 6: bLoop=B = 5: cLoop=C = 4: dLoop=D = -2
N = 26
Real part:34
imaginary part:8
----------------------------------
aLoop=A = 5: bLoop=B = -6: cLoop=C = 2: dLoop=D = 4
N = 26
Real part:34
imaginary part:8
----------------------------------
aLoop=A = 4: bLoop=B = -2: cLoop=C = 6: dLoop=D = 5
N = 26
Real part:34
imaginary part:8
----------------------------------
aLoop=A = 2: bLoop=B = 4: cLoop=C = 5: dLoop=D = -6
N = 26
Real part:34
imaginary part:8
----------------------------------
aLoop=A = -2: bLoop=B = -4: cLoop=C = -5: dLoop=D = 6
N = 26
Real part:34
imaginary part:8
----------------------------------
aLoop=A = -4: bLoop=B = 2: cLoop=C = -6: dLoop=D = -5
N = 26
Real part:34
imaginary part:8
----------------------------------
aLoop=A = -5: bLoop=B = 6: cLoop=C = -2: dLoop=D = -4
N = 26
Real part:34
imaginary part:8
----------------------------------
aLoop=A = -6: bLoop=B = -5: cLoop=C = -4: dLoop=D = 2
N = 26
Real part:34
imaginary part:8
----------------------------------
source code uploaded to resources section under this link
if you want it