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

    mathman

    User Avatar
    Science Advisor
    Gold Member

    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

    phinds

    User Avatar
    Gold Member
    2016 Award

    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)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Confused about logical statements.
  1. Logical confusion (Replies: 1)

  2. Logic statements (Replies: 0)

Loading...