15
awnz
7y

I am so confused with this sentence
"Let's agree to disagree"

Is it a == or != or !== or ===

Comments
  • 7
    As in "we agree that you see 6 / 2(1 + 2) == 9 and I see 6 / 2(1 + 2) == 1, so we'll not talk about it."

    The correct answer is actually 9, btw.
  • 2
    Me: a == x
    You: a == y
    Assuming x != y

    Agree to disagree would be
    (Me && You) == null
    Expanded
    ( (a == x) && (a == y) && (x != y) == null

    If you don't pass the question on your logic homework, let me know.
  • 1
    @RiderExMachina Actually the correct answer is that you are combining two different mathematical notations and the question is invalid.
  • 2
    @RiderExMachina

    6 ➗2 ✖️(1 ➕2) = 9

    6
    -------- = 1
    2 (1 + 2)
  • 2
    As for the OP's question, I would say it's something like this:

    assert(userA.agreesWith(userB) == userB.agreesWith(userA))
  • 0
    I just want to let you know, i have no clue what is going on here. 😕
  • 2
    @RiderExMachina how is the correct answer 9?
  • 3
    @devios1 No. The rule is that brackets are dealt with first.

    So 6 / 2 * 3

    Then left to right.

    3 * 3

    Which is 9.
  • 0
  • 1
    @Wildgoose which rule is this? Cuz in math the 2 gets distributed into all of the parentheses first, no?
  • 0
    @demiko realized that and deleted my comment after 3 mins. You are fast ;)
  • 3
    @Wildgoose BEDMAS is not a law, it's a mnemonic device.

    In proper mathematical notation, 2 (1 + 2) does not just represent times, it's a term and has higher precedence than the division that precedes it.

    In other words, you can't split the term up into denominator (2) and a numerator (1 + 2) as it would change what's represented.

    For example, consider if (1 + 2) was replaced with 'a'. It then becomes:

    6 / 2a

    …which is equivalent to 6 ➗(2 ✖️a), or 6 ➗(2 ✖️(1 ➕2)) once you substitute the 1 + 2 back in.
  • 2
    @devios1 Sorry, yes, you're correct. And I already knew that - but that's what happens when you post when on holiday in Prague after drinking lots of excellent Czech beer. 🤓
  • 1
    @Timothy-Barron Yes, you're right. I was posting while inebriated. Sorry!
  • 2
    @Wildgoose you're all good man!
Add Comment