Search code examples
logicboolean-logicboolean-expression

Manually evaluating logical expressions


I'm not sure if this belongs here, but I was told to evaluate (00110101 ^ (10010101 v 10100000))

How is my answer suppose to look like? I was wondering how I would do this?

I'm thinking of treating each of those values as a variable like (a ^ (b v c)) then make a truth table? Is that what I'm suppose to do?


Solution

  • Do the stuff in the parentheses first:

       10010101
    |  10100000
    -----------
       101.....
    

    Then AND the result with the first number:

       00110101
    &  101.....
    -----------
       001.....