• Log InLog In
  • Register
Liquid`
TeamLiquid Liquipedia LiquidDota LiquidLegends
EDT 06:22
CEST 12:22
KST 19:22
  • 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
WTL 2022 Summer - Week 3 Recap & Week 4 Preview6WTL 2022 Summer - Week 2 Recap & Week 3 Preview8Rogue wins 4th GSL Code S Championship59Road to CCL S4: A World without Drafts1WTL 2022 Summer - Week 1 Recap & Week 2 Preview11
Community News
ESL Open #123: herO doubles, SKillous wins EU3DHM Valencia: Regionals Group Draw15Elazer Joins Team Liquid42[BSL15] Asia Championship - 16 - 22 May on Trovo5ESL Open #122: ByuN, Clem, Cure win2
StarCraft 2
General
What balance / design changes do you want to see? Things the Terran Dominion are not allowed to do. ESL Open #123: herO doubles, SKillous wins EU WTL 2022 Summer - Week 3 Recap & Week 4 Preview Is enough being done about ergonomics/posture?
Tourneys
Alpha Pro Series: Ultimate Showdown #12 DreamHack Masters: Valencia 2022 - Regionals Brawler's Club #28 - ByuN, herO, Dark, Zest ITaX Super Series#79 - Cure, Solar, Creator & soO [GdA] Noob Tournament (Bronze to 3.8k)
Strategy
What is the math on 17 nexus vs 20 nexus? Calling out PiG and Winter [G] PvZ: Nexus First into Dark Templar Drop [G] PvZ Cheese: +1 Zealot Dance Party
Custom Maps
[M] (2) Altitude StarLance | Extension Mod – Multiplayer LotV
External Content
Mutation # 317 Price of Progress Mutation # 316 Fright nigh Mutation # 315 Chilling Adaptation Mutation # 314 Wheel of Misfortune:Cradle of Death
Brood War
General
BGH auto balance -> http://bghmmr.eu/ Maporino 2022!: Entering the Epicenter (map) BSL Season 15 - Continental Championships Starcraft Remastered Foreigner Ranking BW General Discussion
Tourneys
KCM 2022 Season 2 [BSL15] Asia Championship - 16 - 22 May on Trovo The Casual Games of the Week Thread [GAN4]GAN Race Survival Season 4
Strategy
Add 1 medic per base vs storm drops TvT: Wraiths or Battlecruisers? Why recall is not used on tanks? TvP Rush vs Best and vulture harassment.
Other Games
Heroes of the Storm
HotS: WP and Funny Moments Road to CCL S4: A World without Drafts Road to CCL S4: Meeting the New Rosters
General Games
Path of Exile Total War: Warhammer III The PlayStation 5 Tom Clancy's Division Pokémon Go!
TL Mafia
TL Mafia Community Thread Chezinu streak(s) Mafia
Hearthstone
Introduce yourself!
LoL General
LoL Tournaments
LoL Strategy
Community
General
US Politics Mega-thread The Chinese Conundrum Russo-Ukrainian War Thread Australian Politics Thread YouTube Thread
Fan Clubs
The Creator Fan Club Zest Fan Club The Moon Fan Club
Media & Entertainment
Anime Discussion Thread Korean Music Discussion Series you have seen recently... [SCIFI Series] The Expanse Movie Discussion!
Sports
2021 - 2022 Football Thread Formula 1 Discussion McBoner: A hockey love story NBA General Discussion 2021 NFL/CFB Season
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers The Ultimate Mouse Thread
TL Community
The Automated Ban List
Blogs
Gomorrah
Broodwar4lyf
my maps
NicknameLucifer
Getting Back to it..!.20 years…
FuDDx
Computer tinkering and …
Starlightsun
Age
AmericanUmlaut
Is Team Liquid a light blue …
aisight
PCT Highlights: Lakes & Northe…
Tak3r
Mapmaking notes #4
depressed1
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1079 users

On the order of operations

Blogs > jalstar
Post a Reply
jalstar
Profile Blog Joined September 2009
United States8126 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 States3427 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
United Kingdom4582 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 States3479 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 States200 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 States4099 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
ESL Pro Tour
09:00
OCE Playoffs Day 3
MeomaikA vs TeebuLLIVE!
Esl_sc21692
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ROOTSuperNova 335
StarCraft: Brood War
Sea 62460
Calm 6092
Leta 3638
Horang2 2538
GuemChi 2342
Hyuk 1096
actioN 901
ToSsGirL 512
PianO 506
Shuttle 329
[ Show more ]
Rush 275
Killer 143
Shinee 119
Aegong 115
Pusan 80
Free 54
Sharp 40
HiyA 40
sorry 30
Hm[arnc] 26
ajuk12(nOOB) 21
Noble 17
Shine 11
Hyun 11
scan(afreeca) 6
Deathfate
Heroes of the Storm
Livibee184
Other Games
DeMusliM868
WinterStarcraft582
Crank 216
AxAlicia11
Organizations
StarCraft 2
ESL.tv1692
Counter-Strike: Global Offensive
ESL CS:GO1009
StarCraft 2
OGamingTV SC2 108
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 17 non-featured ]
StarCraft 2
• CrowbarSC2 48
• SC2Artist 17
• Dystopia_ 3
• Kozan
• aXEnki
• intothetv
• Gussbus
• Alpha X_
• IndyKCrew
• LaughNgamez Trovo
• Laughngamez YouTube
• Migwel
• Poblha
StarCraft: Brood War
• sscaitournament3
• AfreecaTV YouTube
• BSLYoutube
• STPLYoutube
Upcoming Events
ESL Pro Tour
1h 38m
Has vs Rex
Nice vs TBD
BSL: ProLeague
1h 38m
World Team League
1h 38m
DongRaeGu vs PAPI
Bunny vs HateMe
NightMare vs FIghtingFrog
TIME vs Armani
Solar vs Trap
Spirit vs soO
ESL Pro Tour
4h 38m
ShoWTimE vs ForJumy
Clem vs ShaDoWn
Rattata vs ArT
GunGFuBanDa vs goblin
Serral vs YoungYakov
MaNa vs DnS
SKillous vs HateMe
Reynor vs Soulspirit
PSISTORM Gaming Misc
8h 38m
ESL Pro Tour
9h 38m
Kelazhur vs Cham
SpeCial vs TBD
ESL Pro Tour
1d 5h
ESL Pro Tour
1d 12h
ESL Pro Tour
2 days
ESL Pro Tour
2 days
[ Show More ]
Deathfate Pro Team League
2 days
Alpha Pro Series
2 days
GuMiho vs MaxPax
RagnaroK vs TIME
ESL Pro Tour
3 days
ESL Pro Tour
3 days
ESL Pro Tour
3 days
Deathfate Pro Team League
3 days
Alpha Pro Series
3 days
ByuN vs Classic
Rogue vs Astrea
ESL Pro Tour
4 days
ESL Pro Tour
4 days
ESL Pro Tour
4 days
Alpha Pro Series
4 days
ESL Pro Tour
5 days
ESL Pro Tour
5 days
ESL Pro Tour
5 days
ESL Pro Tour
6 days
ESL Pro Tour
6 days
ESPOT SC2 Circuit
6 days
ESL Pro Tour
6 days
ESL Pro Tour
6 days
Liquipedia Results

Completed

Focus Battle 6 : XiaoShuai vs Motive
2022 GSL S1: Code S
Heroes Rise: Contender Series 3
BLAST Spr. Showdown AME

Ongoing

RCG 2021
CWCL Season 4
Deathfate Pro Team League
HoneyCai Friendlies Season4
FS Mania
CSCL: Masked Kings
GAN Race Survival Season 4
CSL season 5 Late Spring Cup
BSL Season 15 LA
WTL 2022 Summer
DHM Valencia: EU
Championship of Russia 2022
DHM Valencia: LA
DHM Valencia: OC
DHM Valencia: TW
Community Clash League S4
Masters Clash Champ. 2022
ESL Challenger League S41 NA
ESL Challenger League S41 EU
ESL Challenger League S41 APAC
Pinnacle Cup IV
PGL Major Antwerp 2022

Upcoming

BSL Season 15
BSL Season 15 EU
BSL Season 15 NA
DH Masters Atlanta
DH Masters Valencia
StarCraft II: NationWars 7
2022 GSL S2: Code S
DHM Valencia: CN
DHM Valencia: NA
IEM Cologne 2022
ESL Challenger Valencia 2022
EPL Conference Season 16
BLAST Premier Spring Finals
Pinnacle Cup Championship
ESL Impact League S1 Finals
IEM Dallas 2022
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 © 2022 TLnet. All Rights Reserved.