• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:07
CEST 08:07
KST 15:07
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Voting7[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Weekly Cups (Oct 6-12): Four star herO65.0.15 Patch Balance Hotfix (2025-10-8)79Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition325.0.15 Balance Patch Notes (Live version)119
StarCraft 2
General
Revisiting the game after10 years and wow it's bad 5.0.15 Patch Balance Hotfix (2025-10-8) TL.net Map Contest #21: Voting How to Block Australia, Brazil, Singapore Servers The New Patch Killed Mech!
Tourneys
RSL Offline Finals Dates + Ticket Sales! SC4ALL $6,000 Open LAN in Philadelphia Crank Gathers Season 2: SC II Pro Teams LiuLi Cup - September 2025 Tournaments Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
External Content
Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More
Brood War
General
[Interview] Grrrr... 2024 Question regarding recent ASL Bisu vs Larva game BW General Discussion BW caster Sayle Map with fog of war removed for one player?
Tourneys
[ASL20] Semifinal B [Megathread] Daily Proleagues [ASL20] Semifinal A SC4ALL $1,500 Open Bracket LAN
Strategy
Current Meta Relatively freeroll strategies BW - ajfirecracker Strategy & Training Siegecraft - a new perspective
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread Path of Exile
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
[Manga] One Piece Series you have seen recently... Anime Discussion Thread Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Inbreeding: Why Do We Do It…
Peanutsc
From Tilt to Ragequit:The Ps…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1551 users

On the order of operations

Blogs > jalstar
Post a Reply
jalstar
Profile Blog Joined September 2009
United States8198 Posts
April 08 2011 20:21 GMT
#1
I asked my professor about this today and he said that teachers put way too much time into teaching PEMDAS (which isn't mathematically necessary) and not enough into teaching clarity. He said that mathematicians usually write a + (b*c) instead of a+b*c even though in standard notation they mean the same thing, just to make it clearer which operation is intended to be done first.

I looked this up and apparently there are some old texts on factorials that are written as n * n - 1 * n - 2 etc. from before PEMDAS was standard, and the reader was supposed to add or subtract before multiplying. So it's perfectly acceptable to do math without PEMDAS, you just have to make it clear to the reader, that's the important thing.

In fact, elementary schools could completely eliminate teaching PEMDAS, and just tell students to put parentheses to indicate which operations should be done first. However, the reason we multiply before adding is not because it's mathematically necessary, but because it makes writing polynomials easier. ax^2 + bx + c requires parentheses around the first two terms unless you have a convention that says you multiply before adding.

Another thing is that a + b * c is ambiguous, not unambiguous as some in the thread posted, since the definitions of addition and multiplication don't tell you what order to do those operations in. To create clarity, someone actually has to create a standard of whether a + b * c means (a+b)*c or a+(b*c). That way, problems without complete use of parentheses, like the one in the 80+ page thread, still have one correct solution (even if not everyone can get it right).

****
darmousseh
Profile Blog Joined May 2010
United States3437 Posts
April 08 2011 20:23 GMT
#2
Ask your professor about reverse polish notation (postfix).
Developer for http://mtgfiddle.com
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
Last Edited: 2011-04-08 20:34:21
April 08 2011 20:26 GMT
#3
That a + b * c means a+(b*c) is pretty widely established today. And of course convenient in practice. So while one could use a different convention (provided you state your convention at the beginning of the text) it wouldn't be useful in most contexts.
Conventions are just for convenience and are not essential to mathematics. And if they become inconvenient you are free to drop them and use different notations provided you define them.

One recent example of such a notation that was introduced because it's convenient in certain parts of physics is implicit Einstein summation.
LiquipediaOne eye to kill. Two eyes to live.
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
April 08 2011 21:07 GMT
#4
Yeah, I read that article earlier today- it's really interesting. Got me thinking about this thread again.
TRUEESPORTS || your days as a respected member of team liquid are over
Bibdy
Profile Joined March 2010
United States3481 Posts
Last Edited: 2011-04-08 21:32:19
April 08 2011 21:31 GMT
#5
I put this alongside arguing over grammar, accents, spelling or really any kind of argument that relates to language.

Its so much less important HOW they say it, than whether or not you understand the meaning behind it. If a couple of brackets makes something less confusing to the less experienced, why the hell not do it? Got a superiority complex to satisfy by watching weaker minds squirm?
Flameberger
Profile Joined March 2010
United States226 Posts
April 08 2011 22:52 GMT
#6
I completely support the use of more parenthesis to increase clarity. Learning basic order of operations to reduce excessive parentheses is reasonable but I don't feel that it should be depended on strictly.
An engine of annihilating power.
Frigo
Profile Joined August 2009
Hungary1023 Posts
Last Edited: 2011-04-08 22:59:45
April 08 2011 22:55 GMT
#7
a+b*c always means a+(b*c) due to operator precedence
a*b*c always means (a*b)*c due to left-to-right evaluation (* might not be commutative)
a^b^c usually means a^(b^c) due to right-to-left evaluation
Less clear cases are sin x + y and sum_{i=1}^{n} i + 1, etc

If you want to diverge from the standard notation (which can be implemented in a simple algorithm and is assumed in a lot of programming languages as well), be sure to inform your readers. But keep in mind that eliminating order of operators and using parentheses instead of em is a very, very bad practice and leads to less clear formulas.
http://www.fimfiction.net/user/Treasure_Chest
mangomango
Profile Joined September 2009
United States265 Posts
April 08 2011 23:25 GMT
#8
If you are a programmer it's not ambiguous at all. I think context might be the ultimate arbiter.
Husky: Every drone you lose is like a needle in the eye. Nony: probes win $10k (Earn it! Idra Fighting) :P
avilo
Profile Blog Joined November 2007
United States4100 Posts
April 08 2011 23:43 GMT
#9
Hmm...when I was learning math I was one of those uptight people that always put more parenthesis than needed. Why make it so there is possible confusion when you know for sure if it is in parenthesis you do that first?

If there's any confusion...parenthesis make it completely clear. None of the "oh that's how that guy teaches," or, "it's commonly known." Parenthesis bitches! ^_^

Left to right is pretty clear anyways though, but if there's any confusion then yeah...
Sup
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
Last Edited: 2011-04-09 08:44:02
April 09 2011 08:35 GMT
#10
On April 09 2011 08:43 avilo wrote:
Hmm...when I was learning math I was one of those uptight people that always put more parenthesis than needed. Why make it so there is possible confusion when you know for sure if it is in parenthesis you do that first?

While in a publication you aim for clarity, in a calculation brevity and reduction of error rate are most important. Nesting fractions or brackets several levels deep is really annoying. If expressions are longer than lines you grasp for any notational simplification you can get.

Physicists abuse notation horribly. Einstein summation, the way differential operators are treated, reuse of an index to mean different things(Record is three meanings inside a single expression), having different functions with the same name only distinguished by their argument name(i.e. "f(x)" is something different from "f(p)")...
One of the more difficult parts of most theoretical physics lectures is getting used to working with whatever notation is used in that field. Like Bra-Kat notation in quantum mechanics, four vectors in electrodynamics,...

On April 09 2011 08:25 mangomango wrote:
If you are a programmer it's not ambiguous at all.

This most programming languages don't allow juxtaposition(usually because it's inherent ambiguity with either function invokation or multi character identifiers) they don't tell you anything about the priority of that operation. Most programming languages only defined the *,/,+,- operators with well defined precedence.
LiquipediaOne eye to kill. Two eyes to live.
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
Last Edited: 2011-04-09 08:48:22
April 09 2011 08:47 GMT
#11
On April 09 2011 07:55 Frigo wrote:
a^b^c usually means a^(b^c) due to right-to-left evaluation

One interesting this is that right associativity of an operator does not mean that the side effects of an operator are evaluated right to left. In particular C# evaluates the subexpressions from left to right even for right associative operators, and in C++ the order of evaluation is undefined. But if there are no side effects the order of evaluation doesn't matter at all, so this is not relevant in mathematics.
LiquipediaOne eye to kill. Two eyes to live.
Please log in or register to reply.
Live Events Refresh
Next event in 4h 53m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 131
StarCraft: Brood War
PianO 251
actioN 116
Bale 34
NotJumperer 11
Icarus 8
Dota 2
XcaliburYe493
League of Legends
JimRising 752
Counter-Strike
Stewie2K577
m0e_tv382
Coldzera 253
Other Games
summit1g8437
gofns3198
C9.Mang0347
Mew2King85
RuFF_SC249
ViBE43
Models5
Organizations
Counter-Strike
PGL5252
Other Games
gamesdonequick1628
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH121
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Diggity3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1941
• HappyZerGling111
• Jankos50
Upcoming Events
Wardi Open
4h 53m
CranKy Ducklings
1d 3h
Safe House 2
1d 10h
Sparkling Tuna Cup
2 days
Safe House 2
2 days
Tenacious Turtle Tussle
5 days
The PondCast
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.