|April 4th, 2017, 04:56 AM||#1|
Joined: Nov 2016
Hi. I'm a programmer and have just started learning math (I forgot all about it in past years).
In programming languages, multiplication and division have higher precedence than addition and subtraction. Is it the same in algebra?
$\displaystyle 5 + 8 * 3 = 29$
$\displaystyle ( 5 + 8 ) * 3 = 39$
Last edited by skipjack; April 4th, 2017 at 07:42 AM.
|April 4th, 2017, 07:46 AM||#2|
Joined: Dec 2006
In most programming languages, what you suggested applies. That's because the same principle is applied in elementary algebra.
|April 10th, 2017, 01:48 PM||#3|
Joined: Jan 2015
Indeed in basic arithmetic. This is typically taught in the United States, in fifth or sixth grade with the mnemonic "Please Excuse My Dear Aunt Sally" (inside Parentheses first, then Exponents, then Multiplication, then Division, then Addition, then Subtraction. Actually, multiplication and division have the same precedence as do addition and subtraction but we have to put one first). I believe Brits use "Bedmas": "Brackets, exponents, division, multiplication, addition, subtraction".
Last edited by Country Boy; April 10th, 2017 at 01:53 PM.
|addition, higher, multiplication, multlication, precedence|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Explaining Addition in Fractions... Before Multiplication...||Monox D. I-Fly||Math Books||2||October 22nd, 2014 07:21 AM|
|Modulo Definition of Addition and Multiplication||jstarks4444||Number Theory||1||March 15th, 2011 05:35 PM|
|A multiplication and addition relationship||bryce4president||Algebra||2||September 9th, 2008 07:43 AM|
|Zero matrix addition and variable multiplication||morning_mood||Linear Algebra||2||October 16th, 2007 12:43 PM|