HP Calculator Applications in the Workplace
|
07-13-2014, 03:38 PM
Post: #13
|
|||
|
|||
RE: HP Calculator Applications in the Workplace
(07-13-2014 12:26 PM)Don Shepherd Wrote: OK, how do you run it? Just enter A and B. Then X = A XOR B. Example: A = 5 B = 6 X = 3 Am I missing something? It's probably not worth to follow that path. We'd need that expression several times. It's much easier to semi-translate the numbers to binary, calculate XOR on the individual bits and recreate the result from these: Example: A = 5 = 4 + 0 + 1 B = 6 = 4 + 2 + 0 A XOR B = (4 + 4) MOD 8 + (0 + 2) MOD 4 + (1 + 0) MOD 2 = 0 + 2 + 1 Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)