Comment on I dunno

<- View Parent
SmartmanApps@programming.dev ⁨4⁩ ⁨days⁩ ago

That’s a very simplistic view of maths

The Distributive Law and Arithmetic is very simple.

It’s convention

Nope, a literal Law. See screenshot

en.wikipedia.org/wiki/Order_of_operations

Isn’t a Maths textbook, and has many mistakes in it

Just because a definition of an operator contains another operator, does not require that operator to take precedence

Yes it does 😂

2+3x4=2+3+3+3+3=14 by definition of Multiplication

2+3x4=5x4=20 Oops! WRONG ANSWER 😂

As you pointed out, 2+34 could just as well be calculated to 54 and thus 20

No, I pointed out that it can’t be calculated like that, you get a wrong answer, and you get a wrong answer because 3x4=3+3+3+3 by definition

There’s no mathematical contradiction there

Just a wrong answer and a right one. If I have 1 2 litre bottle of milk, and 4 3 litre bottles of milk, even young kids know how to count up how many litres I have. Go ahead and ask them what the correct answer is 🙄

Nothing broke

You got a wrong answer when you broke the rules of Maths. Spoiler alert: I don’t have 20 litres of milk

You just get a different answer

A provably wrong answer 😂

This is all perfectly in line with how maths work

2+3x4=20 is not in line with how Maths works. 2+3+3+3+3 does not equal 20 😂

add(2, mult(3, 4)), for typical

rule

But it could just as well be mult(add(2, 3), 4), where addition takes precedence

And it gives you a wrong answer 🙄 I still don’t have 20 litres of milk

And I hope you see how, in here, everything seems to work just fine

No, I see quite clearly that I have 14 litres of milk, not 20 litres of milk. Even a young kid can count up and tell you that

it just depends on how you rearrange things

Correctly or not

our operators is just convention

The notation is, the rules aren’t

Something in between would be requiring parentheses around every operator, to enforce order

No it wouldn’t. You know we’ve only been using brackets in Maths for 300 years, right? Order of operations is much older than that

Such as (2+(3*4))

Which is exactly how they did it before we started using Brackets in Maths 😂 2+3x4=2+3+3+3+3=14, not complicated.

source
Sort:hotnewtop