Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Confused about logical statements.

  1. Jul 14, 2012 #1
    A and B or C

    Does that even makes sense as a statement?
    I thought logical operators are binary.

    Obviously, the "or" links to C but what is on the other side? A or B?

    i mean 1+2-3=0 makes sense since (1+2)-3=3-3=0=1-1=1+(2-3)

    But [(A and B) or C]=(AorC)and(BorC)
    [ A and ( B or C) ]= (AandB)or(AandC)

    these are not the same.
  2. jcsd
  3. Jul 15, 2012 #2


    User Avatar
    Science Advisor

    Your analogy is incorrect. The corresponding expression in arithmetic would involve both multiplication and addition (distributive law). a(b+c) = ab + ac.
  4. Jul 15, 2012 #3


    User Avatar
    Gold Member

    You really need to use parentheses to be clear

    I think most computer languages will interpret it as

    (A and B) or C

    But I know of at least one that will make it

    A and (B or C)
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook