Search code examples
binarylogicbitxor

How can i calculate A and Y if i know C and X in this XOR function X = Y^(A^C) (binary code)


i have this function: x = y^(a^c) where ^ symbol is the XOR logic between binary numbers, and i have only x and c variables, how can i calculate y and a? I am trying in every way to solve but I can not understand how to reverse it, does anyone know how to help me? Or, if in this way it is not possible to trace the variables, which function (with the same variables) but with different logic gates, can be reversible?


Solution

  • You can't.

    You have one equation but two unknowns.

    Best you can get is a simpler equation relating y and a (and merging x and a, the knowns, into one value), and then you can, given one y/a, calculate the corresponding a/y.