
Algebra PreAlgebra and Basic Algebra Math Forum 
 LinkBack  Thread Tools  Display Modes 
April 4th, 2017, 04:56 AM  #1 
Newbie Joined: Nov 2016 From: iran Posts: 4 Thanks: 0 
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? For example, $\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 
Global Moderator Joined: Dec 2006 Posts: 16,949 Thanks: 1256 
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 
Math Team Joined: Jan 2015 From: Alabama Posts: 2,424 Thanks: 614 
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. 

Tags 
addition, higher, multiplication, multlication, precedence 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Explaining Addition in Fractions... Before Multiplication...  Monox D. IFly  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 