• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 10:01
CEST 16:01
KST 23:01
  • 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
Maestros of the Game: Week 1/Play-in Preview5[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris38Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
#2: Serral - Greatest Players of All Time 2024/25 Off-Season Roster Moves #1: Maru - Greatest Players of All Time Maestros of the Game: Week 1/Play-in Preview Greatest Players of All Time: 2025 Update
Tourneys
LiuLi Cup - September 2025 Tournaments $5,100+ SEL Season 2 Championship (SC: Evo) Maestros of The Game—$20k event w/ live finals in Paris Kirktown Chat Brawl #8 - 4.6K max Tonight LiuLi Cup - August 2025 Tournaments
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
Post ASL20 Ro24 discussion. BGH Auto Balance -> http://bghmmr.eu/ Easiest luckies way to get out of Asl groups BW General Discussion No Rain in ASL20?
Tourneys
[ASL20] Ro24 Group F [IPSL] CSLAN Review and CSLPRO Reimagined! Small VOD Thread 2.0 Cosmonarchy Pro Showmatches
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
General RTS Discussion Thread Warcraft III: The Frozen Throne Path of Exile Mechabellum Nintendo Switch Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread YouTube Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 644 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
SC Evo League
12:00
S2 Championship: Playoffs D2
SteadfastSC379
IndyStarCraft 205
BRAT_OK 99
3DClanTV 58
EnkiAlexander 48
IntoTheiNu 16
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 379
IndyStarCraft 205
BRAT_OK 99
StarCraft: Brood War
Britney 62877
Bisu 1370
Jaedong 1061
firebathero 831
Mini 690
Hyuk 671
BeSt 492
Barracks 222
ggaemo 207
Hyun 151
[ Show more ]
Last 151
hero 123
Movie 103
Mind 96
Mong 78
Pusan 70
Leta 70
sSak 68
PianO 68
Sea.KH 54
Free 51
ToSsGirL 44
sas.Sziky 24
Backho 23
zelot 22
Yoon 20
soO 20
yabsab 16
SilentControl 9
Noble 8
NaDa 6
Dota 2
Gorgc5785
qojqva2737
Dendi1194
XcaliburYe327
Fuzer 163
syndereN149
Counter-Strike
fl0m2318
ScreaM1197
zeus735
oskar129
edward59
Heroes of the Storm
Liquid`Hasu412
Other Games
B2W.Neo3817
singsing2143
Hui .246
SortOf125
KnowMe108
Organizations
Other Games
gamesdonequick836
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• Hinosc 29
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota283
Other Games
• WagamamaTV241
Upcoming Events
Maestros of the Game
1h 59m
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
4h 59m
Team Bonyth vs Team Sziky
BSL Team Wars
4h 59m
Team Dewalt vs Team Sziky
Afreeca Starleague
19h 59m
Soulkey vs BeSt
Snow vs Light
Monday Night Weeklies
1d 1h
Replay Cast
1d 9h
Sparkling Tuna Cup
1d 19h
PiGosaur Monday
2 days
LiuLi Cup
2 days
Replay Cast
3 days
[ Show More ]
The PondCast
3 days
RSL Revival
3 days
Maru vs SHIN
MaNa vs MaxPax
RSL Revival
4 days
Reynor vs Astrea
Classic vs sOs
BSL Team Wars
5 days
Team Bonyth vs Team Dewalt
CranKy Ducklings
5 days
RSL Revival
5 days
GuMiho vs Cham
ByuN vs TriGGeR
Cosmonarchy
5 days
TriGGeR vs YoungYakov
YoungYakov vs HonMonO
HonMonO vs TriGGeR
[BSL 2025] Weekly
6 days
RSL Revival
6 days
Cure vs Bunny
Creator vs Zoun
Liquipedia Results

Completed

Acropolis #4 - TS1
WardiTV Summer 2025
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL Season 18: Qualifier 2
Maestros of the Game
SEL Season 2 Championship
Sisters' Call Cup
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
2025 Chongqing Offline CUP
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
EC S1
BLAST Rivals Fall 2025
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
FISSURE Playground #2
BLAST Open Fall 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.