Chapterبەش 2 · Lectureوانە 2.2

Brackets and the Order of Operationsکەوانەکان و پێشینەیی کارپێکەرەکان

Why 2+3×42 + 3 \times 4 is 14: brackets and the hidden brackets of the fraction bar and the root sign, the order brackets → powers → ×\times and ÷\div → ++ and −- (PEMDAS, BODMAS and friends), left to right on each step, power towers and −32-3^2, the famous 6÷2(1+2)6 \div 2(1 + 2), and why calculators, Excel, Python and MATLAB do not always agree.

بۆچی 2+3×42 + 3 \times 4 دەکاتە ⁦14⁩: کەوانەکان و کەوانە شاراوەکانی هێڵی و ڕەگ، ڕیزبەندیی کەوانە ← ← ×\times و ÷\div ← ++ و −- (PEMDAS، BODMAS و هاوشێوەکانیان)، لە چەپەوە بۆ ڕاست لە هەر پلەیەکدا، تاوەری و −32-3^2، 6÷2(1+2)6 \div 2(1 + 2)ـی بەناوبانگ و بۆچی ، Excel، Python و MATLAB هەمیشە ڕێک ناکەون.

11 min read13 خولەک خوێندنەوە · 12 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Use brackets, and spot the hidden brackets of the fraction bar, the root sign and exponents.
  • Work out any expression in the agreed order: brackets, powers and roots, ×\times and ÷\div, ++ and −-, left to right on each step.
  • Read power towers and front minus signs correctly: 232=5122^{3^2} = 512, −32=−9-3^2 = -9.
  • Explain why 6÷2(1+2)6 \div 2(1 + 2) is ambiguous and write it clearly.
  • Predict where calculators, Excel, Python and MATLAB give different answers.
  • کەوانە بەکار بهێنیت و کەوانە شاراوەکانی هێڵی ، ڕەگ و بدۆزیتەوە.
  • هەر بە ڕیزبەندییە ڕێککەوتووەکە ئەنجام بدەیت: کەوانە، و ڕەگ، ×\times و ÷\div، ++ و −-، لە هەر پلەیەکدا لە چەپەوە بۆ ڕاست.
  • تاوەری و کەمی پێشەوە بە دروستی بخوێنیتەوە: 232=5122^{3^2} = 512، −32=−9-3^2 = -9.
  • ڕوونی بکەیتەوە بۆچی 6÷2(1+2)6 \div 2(1 + 2) ناڕوونە و بە ڕوونی بینووسیتەوە.
  • پێشبینی بکەیت لە کوێدا ، Excel، Python و MATLAB وەڵامی جیاواز دەدەن.

One expression, one answerیەک دەربڕینی جەبری، یەک وەڵام

What is 2+3×42 + 3 \times 4? Work from left to right and you get 5×4=205 \times 4 = 20. Multiply first and you get 2+12=142 + 12 = 14. An expression is only useful if everyone gets the same answer, so mathematicians agreed on one order. The agreed answer is 14.

2+3×42 + 3 \times 4 چەندە؟ ئەگەر لە چەپەوە بۆ ڕاست بڕۆیت، 5×4=205 \times 4 = 20 دەردەچێت. ئەگەر یەکەم جار لێک بدەیت، 2+12=142 + 12 = 14 دەردەچێت. تەنیا کاتێک بەسوودە کە هەموو کەس هەمان وەڵام وەربگرێت، بۆیە بیرکارزانان لەسەر یەک ڕیزبەندی ڕێک کەوتوون. وەڵامە ڕێککەوتووەکە ⁦14⁩ـە.

Two paths for 2 + 3 × 4. The orange path works from left to right: 2 + 3 = 5, then 5 × 4 = 20, marked wrong; a simple shop calculator does this. The green path multiplies first: 3 × 4 = 12, then 2 + 12 = 14, marked right; a scientific calculator, Excel and Python do this.دوو ڕێگا بۆ 2 + 3 × 4. ڕێگا پرتەقاڵییەکە لە چەپەوە بۆ ڕاست دەڕوات: 2 + 3 = 5، پاشان 5 × 4 = 20، بە هەڵە نیشان کراوە؛ حاسیبەیەکی سادەی دوکان ئەمە دەکات. ڕێگا سەوزەکە یەکەم جار لێک دەدات: 3 × 4 = 12، پاشان 2 + 12 = 14، بە ڕاست نیشان کراوە؛ حاسیبەیەکی زانستی، Excel و Python ئەمە دەکەن.
Left to right gives 20; the agreed order gives 14.لە چەپەوە بۆ ڕاست ⁦20⁩ دەدات؛ ڕیزبەندییە ڕێککەوتووەکە ⁦14⁩.CêIT

This agreed order is the order of operations; programmers call it operator precedence. In Kurdish school maths it is called ڕیزکردنی کردارەکان. A simple shop calculator that works out each key at once shows 20; a scientific calculator, Excel, Python, Java and almost every other programming language show 14.

ئەم ڕیزبەندییە ڕێککەوتووە ؛ لە بیرکاریی قوتابخانەدا ناوی «ڕیزکردنی کردارەکان»ـە. سادەی دوکان کە هەر دەستبەجێ ئەنجام دەدات ⁦20⁩ پیشان دەدات؛ زانستی، Excel، Python، Java و نزیکەی هەموو تر ⁦14⁩ پیشان دەدەن.

Brackets: do this firstکەوانە: یەکەم جار ئەمە بکە

Brackets say “work this out first”. Three shapes are used, and in arithmetic they all mean the same:

کەوانە دەڵێت «یەکەم جار ئەمە ئەنجام بدە». سێ شێوە بەکار دێن و لە ژمێرکاریدا هەموویان هەمان واتایان هەیە:

  • ( ) round brackets or parentheses, in Kurdish کەوانە or کەوانەی خڕ (some handouts write نێوکەوانە);
  • [ ] square brackets, کەوانەی چوارگۆشە;
  • { } braces or curly brackets, کەوانەی لوول.
  • ( ) کەوانە یان کەوانەی خڕ (هەندێک مەلزەمە «نێوکەوانە» دەنووسن)؛
  • [ ] کەوانەی چوارگۆشە؛
  • { } کەوانەی لوول.

With brackets inside brackets, start with the innermost pair and work outwards, like peeling an onion: 2×[10−(3+4)]=2×[10−7]=2×3=62 \times [10 - (3 + 4)] = 2 \times [10 - 7] = 2 \times 3 = 6. Books change the shape at each level so you can see which pairs belong together, and worked solutions nest them the same way (for example in Example 1, method A). Braces have a second job too: they hold the members of a set, {1,2,3}\{1, 2, 3\} (Set notation).

کاتێک کەوانە لە ناو کەوانەدا بێت، لە ناوەوەترین جووتەوە دەست پێ بکە و بەرەو دەرەوە بڕۆ، وەک پاککردنی پیاز: 2×[10−(3+4)]=2×[10−7]=2×3=62 \times [10 - (3 + 4)] = 2 \times [10 - 7] = 2 \times 3 = 6. کتێبەکان لە هەر ئاستێکدا شێوەی کەوانە دەگۆڕن بۆ ئەوەی بزانیت کام جووت پێکەوەن و شیکارە نووسراوەکانیش هەروا دەیانخەنە ناو یەکتر (بۆ نموونە لە نموونەی 1، ڕێگای A). کەوانەی لوول کارێکی تریشی هەیە: هەڵدەگرێت، {1,2,3}\{1, 2, 3\} (هێماکانی کۆمەڵە).

Nested brackets as layers of an onion: 2 × [10 − (3 + 4)]. Step 1, the innermost round brackets: 3 + 4 = 7. Step 2, the square brackets: 10 − 7 = 3. Step 3, outside: 2 × 3 = 6. The three bracket shapes are named: round brackets ( ), square brackets [ ], braces { }.کەوانەی ناو کەوانە وەک چینەکانی پیاز: 2 × [10 − (3 + 4)]. هەنگاوی 1، کەوانە خڕە ناوەوەکە: 3 + 4 = 7. هەنگاوی 2، کەوانە چوارگۆشەکە: 10 − 7 = 3. هەنگاوی 3، دەرەوە: 2 × 3 = 6. ناوی سێ شێوەکەی کەوانە: کەوانەی خڕ ( )، کەوانەی چوارگۆشە [ ]، کەوانەی لوول { }.
Innermost first, then work outwards.ناوەوەترین یەکەم، پاشان بەرەو دەرەوە.CêIT

Hidden brackets: the fraction bar, the root sign and powersکەوانەی شاراوە: هێڵی کەرت، هێمای ڕەگ و توانەکان

Some symbols group things without showing any brackets. A fraction bar keeps everything above it together and everything below it together: 8+42+1=123=4\frac{8 + 4}{2 + 1} = \frac{12}{3} = 4. The bar of a root sign covers everything under it: 9+16=25=5\sqrt{9 + 16} = \sqrt{25} = 5, not 3+4=73 + 4 = 7. A raised exponent is one group too: 21+2=23=82^{1 + 2} = 2^3 = 8.

هەندێک بێ پیشاندانی کەوانە شتەکان کۆ دەکەنەوە. هێڵی هەموو ئەوەی لە سەرەوەیەتی پێکەوە دەهێڵێتەوە و هەموو ئەوەی لە خوارەوەیەتیش پێکەوە: 8+42+1=123=4\frac{8 + 4}{2 + 1} = \frac{12}{3} = 4. هێڵی سەر ڕەگ هەموو ئەوەی ژێری دادەپۆشێت: 9+16=25=5\sqrt{9 + 16} = \sqrt{25} = 5، نەک 3+4=73 + 4 = 7. بەرزیش یەک پارچەیە: 21+2=23=82^{1 + 2} = 2^3 = 8.

Three cards. Fraction bar: (8 + 4) over (2 + 1) is 12 over 3, which is 4; typed on one line, (8 + 4)/(2 + 1). Root sign: the bar covers 9 + 16, so the root of 25 is 5, not 3 + 4 = 7; typed sqrt(9 + 16). Exponent: 2 to the power 1 + 2 is 2³ = 8; typed 2^(1 + 2). Dashed brackets show where the hidden brackets are.سێ کارت. هێڵی کەرت: (8 + 4) لەسەر (2 + 1) دەبێتە 12 لەسەر 3، کە دەکاتە 4؛ لە یەک دێڕدا (8 + 4)/(2 + 1). هێمای ڕەگ: هێڵەکە 9 + 16 دادەپۆشێت، بۆیە ڕەگی 25 دەکاتە 5، نەک 3 + 4 = 7؛ دەنووسرێت sqrt(9 + 16). توان: 2 بە توانی 1 + 2 دەبێتە 2³ = 8؛ دەنووسرێت 2^(1 + 2). کەوانەی پچڕپچڕ شوێنی کەوانە شاراوەکان پیشان دەدەن.
Typed on one line, every hidden bracket must be written.لە یەک دێڕدا، هەموو کەوانەیەکی شاراوە دەبێت بنووسرێت.CêIT

Typed on one line, the hidden brackets must become real ones: (8 + 4)/(2 + 1), sqrt(9 + 16), 2^(1 + 2). Forgetting them causes the classic average mistake: 70 + 90 + 80/3 divides only the 80 (Formulas in Excel, Python's precedence traps).

کاتێک لە یەک دێڕدا دەنووسرێن، کەوانە شاراوەکان دەبێت ببنە کەوانەی ڕاستەقینە: (8 + 4)/(2 + 1)، sqrt(9 + 16)، 2^(1 + 2). لەبیرکردنیان هەڵە باوەکەی هەژمارکردنی دروست دەکات: 70 + 90 + 80/3 تەنیا ⁦80⁩ دابەش دەکات (فۆرمولەکان لە Excel، تەڵەکانی ڕیزبەندی لە Python).

The order: brackets, powers, ×\times and ÷\div, ++ and −-ڕیزبەندییەکە: کەوانە، توان، ×\times و ÷\div، ++ و −-

Here is the whole rule, from first to last:

ئەمە هەموو یاساکەیە، لە یەکەمەوە تا کۆتایی:

  1. Brackets, innermost first, and the hidden ones too.
  2. Powers and roots: x2x^2, x\sqrt{x}.
  3. Multiplication and division, from left to right.
  4. Addition and subtraction, from left to right.
  1. کەوانە، ناوەوەترین یەکەم، کەوانە شاراوەکانیش.
  2. و ڕەگەکان: x2x^2، x\sqrt{x}.
  3. و ، لە چەپەوە بۆ ڕاست.
  4. و ، لە چەپەوە بۆ ڕاست.
A staircase of four steps from the top: 1, brackets ( ) [ ] { } and the hidden brackets; 2, powers and roots, x² and √x; 3, × and ÷, left to right; 4, + and −, left to right. Beside it the memory words PEMDAS, BODMAS, BIDMAS and BEDMAS, all the same rule.پلیکانەیەکی چوار پلە لە سەرەوە: 1، کەوانە ( ) [ ] { } و کەوانە شاراوەکان؛ 2، توانەکان و ڕەگەکان، x² و √x؛ 3، × و ÷، لە چەپەوە بۆ ڕاست؛ 4، + و −، لە چەپەوە بۆ ڕاست. لە تەنیشتیەوە وشە یارمەتیدەرەکانی PEMDAS، BODMAS، BIDMAS و BEDMAS، هەموویان هەمان یاسان.
Four steps; the two lower steps go left to right.چوار پلە؛ دوو پلەکەی خوارەوە لە چەپەوە بۆ ڕاست دەڕۆن.CêIT

Countries remember the same rule with different words: PEMDAS in the USA (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction), BODMAS or BIDMAS in the UK and many Commonwealth countries (Brackets, Orders or Indices, that is powers, …) and BEDMAS in Canada and New Zealand. German schools say “dot before line”: the dot signs · and : come before the line signs + and −.

وڵاتان هەمان یاسا بە وشەی جیاواز لەبەر دەکەن: PEMDAS لە ئەمریکا (Parentheses، Exponents، Multiplication و Division، Addition و Subtraction)، BODMAS یان BIDMAS لە بەریتانیا و زۆر وڵاتی کۆمەنوێڵس (Brackets، Orders یان Indices واتە ، …) و BEDMAS لە کەنەدا و نیوزیلەندا. قوتابخانەکانی ئەڵمانیا دەڵێن «خاڵ پێش هێڵ»: خاڵداری · و : پێش هێڵداری + و − دێن.

The order: brackets, powers, ×\times and ÷\div, ++ and −-ڕیزبەندییەکە: کەوانە، توان، ×\times و ÷\div، ++ و −-

Same step: left to rightهەمان پلە: لە چەپەوە بۆ ڕاست

Multiplication and division share one step, and so do addition and subtraction. On one step, go from left to right, whichever sign comes first: 12÷3×2=4×2=812 \div 3 \times 2 = 4 \times 2 = 8 and 8−3+2=5+2=78 - 3 + 2 = 5 + 2 = 7.

و لە یەک پلەدان، و هەروا. لە یەک پلەدا لە چەپەوە بۆ ڕاست بڕۆ، هەر یەکەم جار هات: 12÷3×2=4×2=812 \div 3 \times 2 = 4 \times 2 = 8 و 8−3+2=5+2=78 - 3 + 2 = 5 + 2 = 7.

Two expressions. 12 ÷ 3 × 2: the green path goes left to right, 12 ÷ 3 = 4, then 4 × 2 = 8, right; the orange path multiplies first, 3 × 2 = 6, then 12 ÷ 6 = 2, wrong. 8 − 3 + 2: left to right, 8 − 3 = 5, then 5 + 2 = 7, right; adding first, 3 + 2 = 5, then 8 − 5 = 3, wrong.دوو دەربڕینی جەبری. 12 ÷ 3 × 2: ڕێگا سەوزەکە لە چەپەوە بۆ ڕاست دەڕوات، 12 ÷ 3 = 4، پاشان 4 × 2 = 8، ڕاستە؛ ڕێگا پرتەقاڵییەکە یەکەم جار لێک دەدات، 3 × 2 = 6، پاشان 12 ÷ 6 = 2، هەڵەیە. 8 − 3 + 2: لە چەپەوە بۆ ڕاست، 8 − 3 = 5، پاشان 5 + 2 = 7، ڕاستە؛ ئەگەر یەکەم جار کۆ بکەیتەوە، 3 + 2 = 5، پاشان 8 − 5 = 3، هەڵەیە.
On one step there is no “M before D”: go left to right.لە یەک پلەدا « پێش » نییە: لە چەپەوە بۆ ڕاست بڕۆ.CêIT

This is where memory words mislead. PEMDAS does not mean “M before D”, and BODMAS does not mean “D before M” or “A before S”. Multiplying first in 12÷3×212 \div 3 \times 2 gives 12÷6=212 \div 6 = 2, and adding first in 8−3+28 - 3 + 2 gives 3. Both are wrong.

لێرەدایە کە وشە یارمەتیدەرەکانی لەبەرکردن هەڵەت پێ دەکەن. PEMDAS واتای «M پێش D» نییە و BODMAS واتای «D پێش M» یان «A پێش S» نییە. ئەگەر لە 12÷3×212 \div 3 \times 2ـدا یەکەم جار لێک بدەیت، 12÷6=212 \div 6 = 2 دەردەچێت و ئەگەر لە 8−3+28 - 3 + 2ـدا یەکەم جار کۆ بکەیتەوە، 3 دەردەچێت. هەردووکیان هەڵەن.

Watch the order step by stepڕیزبەندییەکە هەنگاو بە هەنگاو ببینە

The animation works out 7+3×(5−1)2÷67 + 3 \times (5 - 1)^2 \div 6 one step at a time. At each step the part done next is highlighted: the bracket, then the power, then ×\times and ÷\div from left to right, and last the ++.

وێنە جووڵاوەکە 7+3×(5−1)2÷67 + 3 \times (5 - 1)^2 \div 6 هەنگاو بە هەنگاو ئەنجام دەدات. لە هەر هەنگاوێکدا ئەو بەشەی دواتر ئەنجام دەدرێت ڕەنگ دەکرێت: کەوانەکە، پاشان ، پاشان ×\times و ÷\div لە چەپەوە بۆ ڕاست و لە کۆتاییدا ++.

Animation of 7 + 3 × (5 − 1)² ÷ 6. Frame by frame the next part is highlighted and replaced by its value: the bracket 5 − 1 becomes 4; the power 4² becomes 16; 3 × 16 becomes 48; 48 ÷ 6 becomes 8; 7 + 8 becomes 15. A ladder at the side lights up the step in use: brackets, powers, × ÷, + −.
Animation of 7 + 3 × (5 − 1)² ÷ 6. Frame by frame the next part is highlighted and replaced by its value: the bracket 5 − 1 becomes 4; the power 4² becomes 16; 3 × 16 becomes 48; 48 ÷ 6 becomes 8; 7 + 8 becomes 15. A ladder at the side lights up the step in use: brackets, powers, × ÷, + −.
One step at a time: brackets, powers, ×\times and ÷\div, ++ and −-.هەنگاو بە هەنگاو: کەوانە، ، ×\times و ÷\div، ++ و −-.CêIT
7+3×(5−1)2÷6=7+3×42÷6=7+3×16÷6=7+48÷6=7+8=15\begin{aligned} 7 + 3 \times (5 - 1)^2 \div 6 &= 7 + 3 \times 4^2 \div 6 \\ &= 7 + 3 \times 16 \div 6 \\ &= 7 + 48 \div 6 \\ &= 7 + 8 \\ &= 15 \end{aligned}

In English you can read the bracket as “the quantity”: “seven plus three times the quantity five minus one, squared, divided by six”. How to read any formula piece by piece: Read it aloud, piece by piece.

بە کوردی کەوانەکە وەک یەک پارچە بخوێنەوە: «7 کۆ 3 جاران دووجای (⁦5⁩ کەم ⁦1⁩)، دابەش بەسەر 6». چۆن هەر پارچە پارچە بخوێنیتەوە: بە دەنگی بەرز، پارچە پارچە بیخوێنەوە.

Two traps with powersدوو تەڵە لەگەڵ توانەکان

Towers are built from the top. 2322^{3^2} means 2(32)=29=5122^{(3^2)} = 2^9 = 512: work out the top exponent first. It is not (23)2=82=64(2^3)^2 = 8^2 = 64.

تاوەری لە سەرەوە دروست دەکرێت. 2322^{3^2} واتە 2(32)=29=5122^{(3^2)} = 2^9 = 512: یەکەم جار سەرەوە ئەنجام بدە. واتای (23)2=82=64(2^3)^2 = 8^2 = 64 نییە.

Animation of the tower 2 to the 3 to the 2. Frame 1: the tower. Frame 2: the top part 3² is highlighted and becomes 9. Frame 3: 2⁹ becomes 512. Frame 4: beside it, the wrong order (2³)² = 8² = 64 is crossed out.
Animation of the tower 2 to the 3 to the 2. Frame 1: the tower. Frame 2: the top part 3² is highlighted and becomes 9. Frame 3: 2⁹ becomes 512. Frame 4: beside it, the wrong order (2³)² = 8² = 64 is crossed out.
Start at the top of the tower.لە سەری تاوەرەکەوە دەست پێ بکە.CêIT

A minus sign in front waits for the power. In −32-3^2 only the 3 is squared: −32=−(32)=−9-3^2 = -(3^2) = -9. To square −3-3, books write brackets: (−3)2=9(-3)^2 = 9. Read −32-3^2 as “the opposite of three squared” and (−3)2(-3)^2 as “minus three, squared”.

کەم لە پێشەوە چاوەڕێی دەکات. لە −32-3^2ـدا تەنیا 3 دووجا دەکرێت: −32=−(32)=−9-3^2 = -(3^2) = -9. بۆ دووجاکردنی −3-3، کتێبەکان کەوانە دەنووسن: (−3)2=9(-3)^2 = 9. −32-3^2 بخوێنەوە «پێچەوانەی دووجای 3» و (−3)2(-3)^2 «دووجای (−3)(-3)».

The famous 6÷2(1+2)6 \div 2(1 + 2)6÷2(1+2)6 \div 2(1 + 2)ـی بەناوبانگ

This line goes viral online every few years. After the bracket it looks like 6÷2×36 \div 2 \times 3, but there is no ×\times in it: between 2 and the bracket stands an invisible times (The invisible times sign). Two habits read it differently:

ئەم دێڕە هەر چەند ساڵ جارێک لە ئینتەرنێتدا بڵاو دەبێتەوە. لە دوای کەوانەکە وەک 6÷2×36 \div 2 \times 3 دەردەکەوێت، بەڵام هیچ ×\timesـێکی تێدا نییە: لە نێوان 2 و کەوانەکەدا هەیە (هێمای جارانی نەبینراو). دوو خوو بە دوو شێوە دەیخوێننەوە:

  • Treat the hidden sign like ×\times, left to right: (6÷2)×3=9(6 \div 2) \times 3 = 9.
  • Treat 2(1+2)2(1 + 2) as one block, as many science books do (they read 1/2n1/2n as 1/(2n)1/(2n)): 6÷(2×3)=16 \div (2 \times 3) = 1.
  • وەک ×\times دابنێ و لە چەپەوە بۆ ڕاست بڕۆ: (6÷2)×3=9(6 \div 2) \times 3 = 9.
  • 2(1+2)2(1 + 2) وەک یەک پارچە دابنێ، وەک زۆر کتێبی زانستی دەیکەن (1/2n1/2n وەک 1/(2n)1/(2n) دەخوێننەوە): 6÷(2×3)=16 \div (2 \times 3) = 1.
6 ÷ 2(1 + 2) at the top splits into two roads. Left road: (6 ÷ 2) × 3 = 9. Right road: 6 ÷ (2 × 3) = 1. Under each road the clear way to write it with a fraction bar: 6 over 2, times (1 + 2), is 9; 6 over 2(1 + 2) is 1. A note: some calculator models give 9, others 1.6 ÷ 2(1 + 2) لە سەرەوە دەبێتە دوو ڕێگا. ڕێگای چەپ: (6 ÷ 2) × 3 = 9. ڕێگای ڕاست: 6 ÷ (2 × 3) = 1. لە ژێر هەر ڕێگایەکدا شێوە ڕوونەکەی نووسینی بە هێڵی کەرت: 6 لەسەر 2، جاران (1 + 2)، دەکاتە 9؛ 6 لەسەر 2(1 + 2) دەکاتە 1. تێبینییەک: هەندێک جۆری حاسیبە 9 دەدەن و هەندێکی تر 1.
Ambiguous line, two answers; a fraction bar removes the doubt.دێڕێکی ناڕوون، دوو وەڵام؛ هێڵی گومانەکە لادەبات.CêIT

Both habits are in use, and even calculators disagree: some models show 9, others 1. So the honest answer is that the line is badly written. Careful writers use a fraction bar instead: 62(1+2)=9\frac{6}{2}(1 + 2) = 9 or 62(1+2)=1\frac{6}{2(1 + 2)} = 1. Do the same in your own work.

هەردوو خووەکە بەکار دێن و تەنانەت ڕێک ناکەون: هەندێک جۆر 9 پیشان دەدەن و هەندێکی تر 1. کەواتە وەڵامە ڕاستگۆیانەکە ئەوەیە کە دێڕەکە خراپ نووسراوە. نووسەرە وردەکان لە جیاتیی ئەوە هێڵی بەکار دەهێنن: 62(1+2)=9\frac{6}{2}(1 + 2) = 9 یان 62(1+2)=1\frac{6}{2(1 + 2)} = 1. لە کاری خۆتدا هەمان شت بکە.

Calculators, Excel, Python and MATLABحاسیبە، Excel، Python و MATLAB

Machines have their own precedence tables, and they do not always agree:

ئامێرەکان خشتەی خۆیان هەیە و هەمیشە ڕێک ناکەون:

Toolئامراز−32-3^2 writtenنووسینی −32-3^2givesئەنجام2322^{3^2} writtenنووسینی 2322^{3^2}givesئەنجام
Maths bookکتێبی بیرکاری−32-3^2−9-92322^{3^2}512512
Excel=-3^299=2^3^26464
Python-3**2−9-92**3**2512512
MATLAB-3^2−9-92^3^26464
Three drawn screens for −3². A scientific calculator display: −3² = −9. A spreadsheet cell with =-3^2 showing 9, because Excel applies the minus before the power. A Python prompt: >>> -3**2 prints -9.سێ شاشەی کێشراو بۆ −3². شاشەی حاسیبەیەکی زانستی: −3² = −9. خانەیەکی Excel بە =-3^2 کە 9 پیشان دەدات، چونکە Excel کەم پێش توان ئەنجام دەدات. Pythonـیش: >>> -3**2 ئەنجامی -9 دەنووسێت.
Same keys, different answers: know your tool.هەمان ، وەڵامی جیاواز: ئامرازەکەت بناسە.CêIT

Excel applies the negation sign before the power, so =-3^2 is 9 (but =0-3^2 is −9-9, because there the minus is a subtraction). Excel and MATLAB build towers from the left, Python from the top, like the book. Python writes powers as **; its ^ is XOR, a logic operator (XOR), as in Java, which has no power operator at all and writes Math.pow(2, 3) (Powers in Java). JavaScript refuses to guess: -3 ** 2 is an error until you add brackets. Details: Python, MATLAB, Excel, Java.

Excel کەم پێش ئەنجام دەدات، بۆیە =-3^2 دەکاتە 9 (بەڵام =0-3^2 دەکاتە −9-9، چونکە لەوێدا کەمەکە ). Excel و MATLAB تاوەر لە چەپەوە دروست دەکەن، Python لە سەرەوە، وەک کتێب. Python بە ** دەنووسێت؛ ^ـی ئەو XORـە، لۆجیکی (XOR)، وەک Java کە هیچ نییە و Math.pow(2, 3) دەنووسێت (توان لە Javaـدا). JavaScript مەزەندە ناکات: -3 ** 2 هەڵەیە تا کەوانە زیاد دەکەیت. وردەکاری: Python، MATLAB، Excel، Java.

Common mistakesهەڵە باوەکان

MistakeهەڵەWhy it is wrongبۆچی هەڵەیەDo thisئەمە بکە
2+3×4=202 + 3 \times 4 = 202+3×4=202 + 3 \times 4 = 20×\times comes before ++×\times پێش ++ دێت2+12=142 + 12 = 142+12=142 + 12 = 14
12÷3×2=212 \div 3 \times 2 = 212÷3×2=212 \div 3 \times 2 = 2×\times and ÷\div share one step: go left to right×\times و ÷\div لە یەک پلەدان: لە چەپەوە بۆ ڕاست بڕۆ4×2=84 \times 2 = 84×2=84 \times 2 = 8
−32=9-3^2 = 9−32=9-3^2 = 9Only the 3 is squaredتەنیا 3 دووجا دەکرێت−9-9; write (−3)2(-3)^2 for 9−9-9؛ بۆ 9 بنووسە (−3)2(-3)^2
232=642^{3^2} = 64232=642^{3^2} = 64Towers are built from the topتاوەر لە سەرەوە دروست دەکرێت29=5122^9 = 51229=5122^9 = 512
Typing a + b / 2 for an averageنووسینی a + b / 2 بۆ Only b is dividedتەنیا b دابەش دەکرێت(a + b) / 2(a + b) / 2
Typing 8^1/3 for the cube root of 8نووسینی 8^1/3 بۆ 8The power comes before the division: it gives 8/3 پێش دێت: ⁦8/3⁩ دەدات8^(1/3)8^(1/3)
9+16=3+4\sqrt{9 + 16} = 3 + 49+16=3+4\sqrt{9 + 16} = 3 + 4The root covers the whole sumڕەگەکە هەموو کۆکەی دادەپۆشێت25=5\sqrt{25} = 525=5\sqrt{25} = 5
Writing 6÷2(1+2)6 \div 2(1 + 2)نووسینی 6÷2(1+2)6 \div 2(1 + 2)Readers disagree: 1 or 9خوێنەران ڕێک ناکەون: 1 یان 9Use a fraction barهێڵی بەکار بهێنە

Practiceڕاهێنان

ExerciseڕاهێنانWork it out and say itئەنجامی بدە و بیخوێنەوە

Work out each one, then read it aloud in English and Kurdish: (a) 18−4×318 - 4 \times 3 (b) (18−4)×3(18 - 4) \times 3 (c) 2+32×22 + 3^2 \times 2 (d) 24÷4÷224 \div 4 \div 2 (e) 6+95−1\frac{6 + 9}{5} - 1.

هەر یەکەیان ئەنجام بدە، پاشان بە ئینگلیزی و کوردی بە دەنگی بەرز بیخوێنەوە: ⁦(a)⁩ 18−4×318 - 4 \times 3 ⁦(b)⁩ (18−4)×3(18 - 4) \times 3 ⁦(c)⁩ 2+32×22 + 3^2 \times 2 ⁦(d)⁩ 24÷4÷224 \div 4 \div 2 ⁦(e)⁩ 6+95−1\frac{6 + 9}{5} - 1.

Show answerوەڵامەکە پیشان بدە
(a) 18−12=6(b) 14×3=42(c) 2+9×2=2+18=20(d) 6÷2=3(e) 155−1=3−1=2\begin{aligned} \text{(a)}\ & 18 - 12 = 6 \\ \text{(b)}\ & 14 \times 3 = 42 \\ \text{(c)}\ & 2 + 9 \times 2 = 2 + 18 = 20 \\ \text{(d)}\ & 6 \div 2 = 3 \\ \text{(e)}\ & \tfrac{15}{5} - 1 = 3 - 1 = 2 \end{aligned}

Readings: (a) “eighteen minus four times three”; (b) “the quantity eighteen minus four, times three”; (c) “two plus three squared times two”; (d) “twenty-four divided by four, divided by two”; (e) “six plus nine, over five, minus one”.

خوێندنەوەکان: ⁦(a)⁩ «⁦18⁩ کەم 4 جاران 3»؛ ⁦(b)⁩ «(⁦18⁩ کەم ⁦4⁩) جاران 3»؛ ⁦(c)⁩ «2 کۆ 3 دووجا جاران 2»؛ ⁦(d)⁩ «⁦24⁩ دابەش بەسەر 4، دابەش بەسەر 2»؛ ⁦(e)⁩ «(⁦6⁩ کۆ ⁦9⁩) لەسەر 5، کەم 1».

ExerciseڕاهێنانWhat will the machine print?ئامێرەکە چی دەنووسێت؟

Predict the result: (a) Excel =-4^2 (b) Python -4**2 (c) Excel =2^2^3 (d) Python 2**2**3.

ئەنجامەکە پێشبینی بکە: ⁦(a) Excel⁩ =-4^2 ⁦(b) Python⁩ -4**2 ⁦(c) Excel⁩ =2^2^3 ⁦(d) Python⁩ 2**2**3.

Show answerوەڵامەکە پیشان بدە
  • (a) 16: Excel squares −4-4.
  • (b) −16-16: Python squares 4, then makes it negative.
  • (c) 64: Excel goes left to right, (22)3=43(2^2)^3 = 4^3.
  • (d) 256: Python starts at the top, 2(23)=282^{(2^3)} = 2^8.
  • ⁦(a) 16: Excel⁩ −4-4 دووجا دەکات.
  • ⁦(b)⁩ −16-16: ⁦Python 4⁩ دووجا دەکات، پاشان سالبی دەکات.
  • ⁦(c) 64: Excel⁩ لە چەپەوە بۆ ڕاست دەڕوات، (22)3=43(2^2)^3 = 4^3.
  • ⁦(d) 256: Python⁩ لە سەرەوە دەست پێ دەکات، 2(23)=282^{(2^3)} = 2^8.
ExerciseڕاهێنانAdd bracketsکەوانە زیاد بکە

Add brackets to make each line true: (a) 2+3×4=202 + 3 \times 4 = 20 (b) 12÷2+4=212 \div 2 + 4 = 2 (c) 5−3−1=35 - 3 - 1 = 3.

کەوانە زیاد بکە بۆ ئەوەی هەر دێڕێک ڕاست بێت: ⁦(a)⁩ 2+3×4=202 + 3 \times 4 = 20 ⁦(b)⁩ 12÷2+4=212 \div 2 + 4 = 2 ⁦(c)⁩ 5−3−1=35 - 3 - 1 = 3.

Show answerوەڵامەکە پیشان بدە
(a) (2+3)×4=20(b) 12÷(2+4)=2(c) 5−(3−1)=3\text{(a) } (2 + 3) \times 4 = 20 \qquad \text{(b) } 12 \div (2 + 4) = 2 \qquad \text{(c) } 5 - (3 - 1) = 3

Summaryپوختە

  • The order of operations: brackets, then powers and roots, then ×\times and ÷\div, then ++ and −-.
  • ×\times and ÷\div share one step, ++ and −- share one step: on a step, go from left to right.
  • The fraction bar, the root sign and a raised exponent are hidden brackets; typed on one line, write them.
  • Towers start at the top: 232=5122^{3^2} = 512. A front minus waits for the power: −32=−9-3^2 = -9.
  • 6÷2(1+2)6 \div 2(1 + 2) is badly written; use a fraction bar.
  • Excel, Python and MATLAB differ on −32-3^2 and on towers: check the tool, or add brackets.
  • All these symbols, with their readings, are in the Symbol dictionary: Brackets and the order of operations.
  • : کەوانە، پاشان و ڕەگەکان، پاشان ×\times و ÷\div، پاشان ++ و −-.
  • ×\times و ÷\div لە یەک پلەدان، ++ و −-ـیش لە یەک پلەدان: لە هەر پلەیەکدا لە چەپەوە بۆ ڕاست بڕۆ.
  • هێڵی ، ڕەگ و بەرز کەوانەی شاراوەن؛ لە یەک دێڕدا بیاننووسە.
  • تاوەر لە سەرەوە دەست پێ دەکات: 232=5122^{3^2} = 512. کەمی پێشەوە چاوەڕێی دەکات: −32=−9-3^2 = -9.
  • 6÷2(1+2)6 \div 2(1 + 2) خراپ نووسراوە؛ هێڵی بەکار بهێنە.
  • Excel، Python و MATLAB لە −32-3^2 و تاوەردا جیاوازن: ئامرازەکە بپشکنە، یان کەوانە زیاد بکە.
  • هەموو ئەم نیشانانە، لەگەڵ خوێندنەوەکانیان، لە فەرهەنگی هەن: کەوانەکان و پێشینەیی کارپێکەرەکان.
Review questionsپرسیارەکانی پێداچوونەوە
What is 5+10÷5×25 + 10 \div 5 \times 2?5+10÷5×25 + 10 \div 5 \times 2 چەندە؟

10÷5=210 \div 5 = 2, 2×2=42 \times 2 = 4, then 5+4=95 + 4 = 9.

10÷5=210 \div 5 = 2، 2×2=42 \times 2 = 4، پاشان 5+4=95 + 4 = 9.

Why is 8+42\frac{8 + 4}{2} not 8+4/28 + 4/2?بۆچی 8+42\frac{8 + 4}{2} یەکسان نییە بە 8+4/28 + 4/2؟

The fraction bar groups 8+48 + 4: 12/2=612/2 = 6. 8+4/28 + 4/2 is 8+2=108 + 2 = 10.

هێڵی 8+48 + 4 کۆ دەکاتەوە: 12/2=612/2 = 6. 8+4/28 + 4/2 دەکاتە 8+2=108 + 2 = 10.

Which is bigger, −42-4^2 or (−4)2(-4)^2?کامیان گەورەترە، −42-4^2 یان (−4)2(-4)^2؟

(−4)2=16(-4)^2 = 16; −42=−16-4^2 = -16.

(−4)2=16(-4)^2 = 16؛ −42=−16-4^2 = -16.

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

Powers, Roots, Absolute Value, Factorial, Floor and Ceilingتوانەکان، ڕەگەکان، نرخی ڕووت، فاکتۆریێل، نەخشەی گەورەترین ژمارەی تەواو و نەخشەی بچووکترین ژمارەی تەواو

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.

Appearanceڕووکار

Modeدۆخ
Styleشێواز
Coloursڕەنگەکان

Saved on this device only.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.