concerning the attached component:
the following inputs were switched with each other:
1. a2 and b0
2. a1 and b1
3. cin and b2
marking A as the first number and B as the second number and S as the output, what is S as a function of A and B?
I figured by trial and error (there were four options) that S=(A-((3A)mod2)div4) + (B+((3B)mod2)-(((3B)mod2)div4))
I'd be happy to see if there is a more neat way to get this solution
the following inputs were switched with each other:
1. a2 and b0
2. a1 and b1
3. cin and b2
marking A as the first number and B as the second number and S as the output, what is S as a function of A and B?
I figured by trial and error (there were four options) that S=(A-((3A)mod2)div4) + (B+((3B)mod2)-(((3B)mod2)div4))
I'd be happy to see if there is a more neat way to get this solution
Last edited by a moderator: