Post Reply 
Order of operations - what is 6÷2(1+2) ?
12-12-2020, 04:58 AM
Post: #30
RE: Order of operations - what is 6÷2(1+2) ?
(12-12-2020 12:32 AM)Massimo Gnerucci Wrote:  So when you write x/2y what you really mean is (x*y)/2?
Luckily we have PEJMDAS!

Turns out that PEMDAS is quite a novelty and that its core fans are North American teachers...

Yes, to most programmers I know it means (x/2)*y.

Let x=4, y=7
if you use a computer to print the result, you get 14. Most computer languages don't allow implied multiplication so in order to write it as it's written without introducing parentheses, we'd write it as

x/2*y

We have no juxtaposition. Mathematicians might but us computer programmers don't.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Order of operations - what is 6÷2(1+2) ? - toml_12953 - 12-12-2020 04:58 AM



User(s) browsing this thread: 2 Guest(s)