1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Logical Operator Question

  1. Jan 20, 2005 #1
    Hello all

    What can you replace b1 XOR b2 ? I tried using deMorgan's Laws. Is it b1 != b2 ?

    thanks
     
  2. jcsd
  3. Jan 20, 2005 #2

    Tom Mattson

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    That certainly gives the same truth table, but I'm not familiar with != as a logical operator (I know it means "not equal to" in Comp Sci, but not in mathematical logic). I would think it would be:

    ~(b1=b2)

    But maybe your book uses different notation. Anyway, you're right.
     
  4. Jan 20, 2005 #3

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    b1 XOR b2 is True in one of the two is true and the other false. It is False if they are both true or both false. It is equivalent to "((NOT b1) AND (b2)) OR ((b1) AND (NOT b2))" which is exactly the same as 'b1 NOT EQUAL b2".
     
  5. Jan 20, 2005 #4
    this is for comp sci. not logic.

    thanks
     
  6. Jan 20, 2005 #5

    Tom Mattson

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Well, there you go! :smile:
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Logical Operator Question
Loading...