Why Multiplication Has Higher Priority than Addition: A Pedagogical Remark

Pub Date : 2017-01-01 DOI:10.12988/JITE.2017.61145
O. Kosheleva, V. Kreinovich
{"title":"Why Multiplication Has Higher Priority than Addition: A Pedagogical Remark","authors":"O. Kosheleva, V. Kreinovich","doi":"10.12988/JITE.2017.61145","DOIUrl":null,"url":null,"abstract":"Traditionally, multiplication has higher priority over addition; this means that there is no need to add parentheses if we want to perform multiplication first, and we need to explicitly add parentheses if we want addition to be performed first. Why not use an alternative arrangement, in which addition has higher priority? In this paper, we explain the traditional priority arrangement by showing that in the general case, the traditional arrangement allows us to use fewer parentheses than the alternative one. 1 Why Multiplication Has Higher Priority than Addition: Formulation of the Problem Multiplication has higher priority than addition: a reminder. In our usual arithmetic notations, multiplication has priority over addition. This means that if the arithmetic expression has no parentheses, e.g., has the type a+ b · c, then we: • first multiply b and c, and then • add a to the resulting product. If we want to perform addition first, then we have to add parentheses. For example, if we want to first add a and b, and then multiply the sum by c, then we have to write an expression (a+ b) · c. Why? A natural question is: why does multiplication have higher priority than addition? Why not consider addition a higher-priority operation, so that:","PeriodicalId":0,"journal":{"name":"","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2017-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.12988/JITE.2017.61145","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Traditionally, multiplication has higher priority over addition; this means that there is no need to add parentheses if we want to perform multiplication first, and we need to explicitly add parentheses if we want addition to be performed first. Why not use an alternative arrangement, in which addition has higher priority? In this paper, we explain the traditional priority arrangement by showing that in the general case, the traditional arrangement allows us to use fewer parentheses than the alternative one. 1 Why Multiplication Has Higher Priority than Addition: Formulation of the Problem Multiplication has higher priority than addition: a reminder. In our usual arithmetic notations, multiplication has priority over addition. This means that if the arithmetic expression has no parentheses, e.g., has the type a+ b · c, then we: • first multiply b and c, and then • add a to the resulting product. If we want to perform addition first, then we have to add parentheses. For example, if we want to first add a and b, and then multiply the sum by c, then we have to write an expression (a+ b) · c. Why? A natural question is: why does multiplication have higher priority than addition? Why not consider addition a higher-priority operation, so that:
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
为什么乘法比加法更重要:一个教学评论
传统上,乘法比加法具有更高的优先级;这意味着,如果我们想先执行乘法运算,就不需要添加括号;如果我们想先执行加法运算,就需要显式地添加括号。为什么不使用另一种排列,其中加法具有更高的优先级?在本文中,我们通过展示在一般情况下,传统的排列允许我们使用比替代排列更少的括号来解释传统的优先级排列。为什么乘法比加法优先:问题的表述乘法比加法优先:提醒。在我们常用的算术符号中,乘法优先于加法。这意味着,如果算术表达式没有括号,例如,类型为a+ b·c,那么我们:•首先将b与c相乘,然后•将a加到结果的乘积上。如果我们想先做加法,那么我们必须加括号。例如,如果我们想先把a和b相加,然后把和乘以c,那么我们必须写出一个表达式(a+ b)·c,为什么?一个自然的问题是:为什么乘法比加法具有更高的优先级?为什么不考虑将加法作为优先级更高的操作,这样:
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1