TonyHudson
New member
- Joined
 - Sep 11, 2006
 
- Messages
 - 1
 
The object is to simplify the calculations below to make the 
fewest number of multiplication calls as possible.
Given
x = ab-cc+bd
and
y = bb-cc+ad.
"My instructor insists that it can be done using 3 or 4 substitutions and then
3 multiplications."
I can do it with 4 multiplications.
first I make x = bb * (a+d) - cc
let cc = temp1
let bb = temp2
let ad = temp3
so x= temp2*(a+d) - temp1
and y = temp2 - temp1 + temp3
Is there some deep magic I don't get here?
				
			fewest number of multiplication calls as possible.
Given
x = ab-cc+bd
and
y = bb-cc+ad.
"My instructor insists that it can be done using 3 or 4 substitutions and then
3 multiplications."
I can do it with 4 multiplications.
first I make x = bb * (a+d) - cc
let cc = temp1
let bb = temp2
let ad = temp3
so x= temp2*(a+d) - temp1
and y = temp2 - temp1 + temp3
Is there some deep magic I don't get here?