• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 22:23
CEST 04:23
KST 11:23
  • 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
RSL Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall12HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Esports World Cup 2025 - Brackets Revealed10Weekly Cups (July 7-13): Classic continues to roll4Team TLMC #5 - Submission extension3Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
Who will win EWC 2025? RSL Revival patreon money discussion thread The GOAT ranking of GOAT rankings Weekly Cups (July 7-13): Classic continues to roll Esports World Cup 2025 - Brackets Revealed
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event RSL: Revival, a new crowdfunded tournament series $5,100+ SEL Season 2 Championship (SC: Evo) WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
External Content
Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome
Brood War
General
Flash Announces (and Retracts) Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Starcraft in widescreen A cwal.gg Extension - Easily keep track of anyone
Tourneys
[Megathread] Daily Proleagues Cosmonarchy Pro Showmatches CSL Xiamen International Invitational [BSL20] Non-Korean Championship 4x BSL + 4x China
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile CCLP - Command & Conquer League Project The PlayStation 5
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 Stop Killing Games - European Citizens Initiative Summer Games Done Quick 2025! Things Aren’t Peaceful in Palestine
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 2024 - 2025 Football Thread NBA General Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Men Take Risks, Women Win Ga…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 660 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
PiGosaur Monday
00:00
#40
CranKy Ducklings226
EnkiAlexander 99
davetesta44
rockletztv 32
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 252
RuFF_SC2 153
Livibee 97
CosmosSc2 41
StarCraft: Brood War
Britney 12185
MaD[AoV]43
Icarus 7
Zeus 1
Dota 2
NeuroSwarm136
League of Legends
Cuddl3bear5
Counter-Strike
Coldzera 224
Super Smash Bros
hungrybox516
Mew2King109
Other Games
summit1g13358
shahzam1203
Day[9].tv791
ViBE247
Maynarde154
Trikslyr81
ROOTCatZ23
Organizations
Other Games
gamesdonequick3237
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH207
• OhrlRock 1
• Migwel
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota2310
League of Legends
• Doublelift4378
Other Games
• Scarra1297
• Day9tv791
Upcoming Events
uThermal 2v2 Circuit
13h 37m
Replay Cast
21h 37m
The PondCast
1d 7h
OSC
1d 10h
WardiTV European League
1d 13h
Replay Cast
1d 21h
Epic.LAN
2 days
CranKy Ducklings
3 days
Epic.LAN
3 days
CSO Contender
3 days
[ Show More ]
BSL20 Non-Korean Champi…
3 days
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
Sparkling Tuna Cup
4 days
Online Event
4 days
BSL20 Non-Korean Champi…
4 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Esports World Cup
6 days
ByuN vs Astrea
Lambo vs HeRoMaRinE
Clem vs TBD
Solar vs Zoun
SHIN vs Reynor
Maru vs TriGGeR
herO vs Lancer
Cure vs ShoWTimE
Liquipedia Results

Completed

CSL 17: 2025 SUMMER
RSL Revival: Season 1
Murky Cup #2

Ongoing

JPL Season 2
BSL 2v2 Season 3
Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
Championship of Russia 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters

Upcoming

CSL Xiamen Invitational
CSL Xiamen Invitational: ShowMatche
2025 ACS Season 2
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
K-Championship
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
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
IEM Cologne 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.