• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:08
CEST 15:08
KST 22:08
  • 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
Team TLMC #5 - Finalists & Open Tournaments0[ASL20] Ro16 Preview Pt2: Turbulence6Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12
Community News
Weekly Cups (Sept 8-14): herO & MaxPax split cups3WardiTV TL Team Map Contest #5 Tournaments1SC4ALL $6,000 Open LAN in Philadelphia7Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues29LiuLi Cup - September 2025 Tournaments3
StarCraft 2
General
#1: Maru - Greatest Players of All Time Team Liquid Map Contest #21 - Presented by Monster Energy Weekly Cups (Sept 8-14): herO & MaxPax split cups SpeCial on The Tasteless Podcast Team TLMC #5 - Finalists & Open Tournaments
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament WardiTV TL Team Map Contest #5 Tournaments Maestros of The Game—$20k event w/ live finals in Paris RSL: Revival, a new crowdfunded tournament series SC4ALL $6,000 Open LAN in Philadelphia
Strategy
Custom Maps
External Content
Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ro16 Preview Pt2: Turbulence Diplomacy, Cosmonarchy Edition BW General Discussion ASL20 General Discussion
Tourneys
[ASL20] Ro16 Group D [ASL20] Ro16 Group C [Megathread] Daily Proleagues SC4ALL $1,500 Open Bracket LAN
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile General RTS Discussion Thread Nintendo Switch Thread Borderlands 3
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread Russo-Ukrainian War Thread The Big Programming Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
The Personality of a Spender…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1590 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
OSC
13:00
King of the Hill #225
Liquipedia
2v2
11:00
TLMC $500 2v2 Open Cup
WardiTV501
IndyStarCraft 134
Rex80
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko427
IndyStarCraft 134
Rex 80
ProTech64
Codebar 0
StarCraft: Brood War
Calm 16950
Flash 10383
Rain 6575
Bisu 5010
GuemChi 4520
BeSt 1625
Horang2 1390
EffOrt 1174
Mini 861
Hyuk 737
[ Show more ]
Pusan 565
Zeus 556
ZerO 497
firebathero 467
Hyun 247
Soulkey 220
Snow 169
Mind 142
Rush 125
ggaemo 81
Mong 76
Barracks 62
soO 56
JYJ53
Liquid`Ret 49
Backho 47
Aegong 46
Sea.KH 44
Killer 39
Movie 34
Sharp 30
Free 18
sorry 18
Sacsri 18
Terrorterran 15
HiyA 13
Icarus 10
SilentControl 9
Hm[arnc] 7
Bale 6
IntoTheRainbow 6
Noble 5
Dota 2
singsing3995
Gorgc3868
Dendi1660
qojqva1580
XcaliburYe216
Pyrionflax184
Fuzer 152
Counter-Strike
byalli218
markeloff164
zeus99
edward20
Other Games
olofmeister1225
B2W.Neo841
hiko804
crisheroes387
x6flipin384
Hui .181
Happy108
QueenE56
NeuroSwarm46
Trikslyr34
FunKaTv 20
ToD6
Organizations
StarCraft: Brood War
Afreeca ASL 21433
UltimateBattle 348
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• iHatsuTV 4
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2910
• WagamamaTV401
League of Legends
• Nemesis6367
Upcoming Events
PiGosaur Monday
10h 52m
LiuLi Cup
21h 52m
RSL Revival
1d 20h
Maru vs Reynor
Cure vs TriGGeR
The PondCast
1d 23h
RSL Revival
2 days
Zoun vs Classic
Korean StarCraft League
3 days
BSL Open LAN 2025 - War…
3 days
RSL Revival
3 days
BSL Open LAN 2025 - War…
4 days
RSL Revival
4 days
[ Show More ]
Online Event
5 days
Wardi Open
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2025-09-10
Chzzk MurlocKing SC1 vs SC2 Cup #2
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL World Championship of Poland 2025
IPSL Winter 2025-26
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries 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.