48÷2(9+3) =

Page 18 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

torpid

Lifer
Sep 14, 2003
11,631
11
76
To be fair, if you're a coder, you're probably gonna say 2. VB, SQL, ASP, it all resolves the 2(9+3) before doing the rest.

Huh? VB and SQL do not recognize 2(9+3) as a valid operation.

VB won't even compile 48/2(9+3) and all RDBMS to which I have access (DB2, Oracle, SQL Server) return a syntax error.

If you make it 48/2*(9+3) then all resolve to 288
 
Dec 10, 2005
24,566
7,554
136
If you make it 48/2*(9+3) then all resolve to 288

I'm surprised so many people are coming up with 2.

If you put it into the python command line as 48 / 2 * (9 + 3) you get 288, which is exactly what I would expect, since you do parenthesis first, then multiply or divide in order from left to right. The idea of 'implied parenthesis' to get 2 is somewhat absurd and you all need to go back to elementary school math.
 

dullard

Elite Member
May 21, 2001
25,237
3,649
126
If you put it into the python command line as 48 / 2 * (9 + 3) you get 288, which is exactly what I would expect, since you do parenthesis first, then multiply or divide in order from left to right. .
I said it before, and I'll say it again, you did this:
48 / 2 * (9 + 3)
The OP did this:
48 / 2 (9 + 3)
There is a big difference. I don't have Python, but every other math program I have spits out undefined or mentions an error. The error is the lack of the multiplication sign. 2 and 288 are both wrong because that isn't a formula that you can evaluate.

This isn't an order of operations issue. It is a lack of properly defined operations issue. There is no order when the equation isn't an equation. Those giving an answer are as wrong as those giving the "incorrect" answer.

* Excel says "Microsoft Excel found an error in the formula you entered".
* Matlab says "Unbalanced or unexpected parenthesis or bracket".
* Google converts it to an equation it can handle in some cases, but it doesn't in most cases. For example Google won't work if you do this: "2 (12) ="
* MathCad says "This variable or function is not defined above".
* Visual Basic says "Compile error: Expected: end of statement".
 
Last edited:

torpid

Lifer
Sep 14, 2003
11,631
11
76
I said it before, and I'll say it again, you did this:
48 / 2 * (9 + 3)
The OP did this:
48 / 2 (9 + 3)
There is a difference. I don't have Python, but every other math program I have spits out the correct answer "undefined" or "error". The error is the lack of the multiplication sign. 2 and 288 are both wrong because that isn't a formula that you can evaluate.

I can't imagine the above is going to be valid in very many programming languages. Perhaps matlab or lisp? It's been a while since I've used either but both have unique ways of interpreting parentheses from what I can recall.
 

Paul98

Diamond Member
Jan 31, 2010
3,732
199
106
I said it before, and I'll say it again, you did this:
48 / 2 * (9 + 3)
The OP did this:
48 / 2 (9 + 3)
There is a big difference. I don't have Python, but every other math program I have spits out the correct answer "undefined" or "error". The error is the lack of the multiplication sign. 2 and 288 are both wrong because that isn't a formula that you can evaluate.

This isn't an order of operations issue. It is a lack of properly defined operations issue. There is no order when the equation isn't an equation.


so what answer would you get if you did 48/2*(9+3)?
 

Saint Nick

Lifer
Jan 21, 2005
17,722
6
81
Well, if I were sticking to what I learned a long time ago, I would READ and EVALUATE the expression like this:

48 / 2 * (9 + 3)
48 / 2 * 12
24 * 12
288

Now, if it were written like this, 48/[2(9+3)], then I would read and evalute it like this:

48 / [2(9+3)]
48 / [2(12)]
48 / [24]
2

or

48 / [2(9+3)]
48 / (2*9 + 2*3)
48 / (18 + 6)
48 / 24
2
 
Last edited:

rcpratt

Lifer
Jul 2, 2009
10,433
110
116
No, it is not. Commonly, there is a multiplication sign or a small dot. Maybe you are mistaking the small dot as being invisible.
Come on now. I agree it's poor form, but equations are written that way very commonly.
 

Paul98

Diamond Member
Jan 31, 2010
3,732
199
106
No, it is not. Commonly, there is a multiplication sign or a small dot. Maybe you are mistaking the small dot as being invisible.

Actually it is, I just opened a couple of my old college math books, along with looked at some of my homework that I had written and tests that I had. Flipping though them I did not see a single time where there was a dot, *,... What I did see was a lot of 5ab, 12(...),...

So yes it is commonly used.

Now maybe in very low level math they still use * with expressions like that I am not sure I don't have those books.
 

JoeBleed

Golden Member
Jun 27, 2000
1,408
30
91
Multiply and divide are even, as are addition and subtraction. A number being outside of but next to a parentheses is that same as if there was a multiply sign. I don't have a math degree, I have a computer science degree, but this is basically just an algorithm.

Yes, I and the first one i asked, seemed to forget the left to right part for some reason.
 

airdata

Diamond Member
Jul 11, 2010
4,987
0
0
without implying brackets though... isn't the 2x a part of the parenthesis even though it's outside of them?

But yeah.. who the hell cares and why is there a near 20 page thread about some obscure algebra problem?

/thread
 

Paul98

Diamond Member
Jan 31, 2010
3,732
199
106
without implying brackets though... isn't the 2x a part of the parenthesis even though it's outside of them?

But yeah.. who the hell cares and why is there a near 20 page thread about some obscure algebra problem?

/thread

Why just the 2? and not the 48/2 as part of the parenthesis?

I mean what if you had (48/2*9 + 48/2*3) then decide to pull out the 48/2 and get 48/2(9+3)
 
Last edited:

ussfletcher

Platinum Member
Apr 16, 2005
2,569
2
81
No, it is not. Commonly, there is a multiplication sign or a small dot. Maybe you are mistaking the small dot as being invisible.

When you have a number directly next to a parenthesis that is an abbreviation, it has an implied multiplication sign.
 

ussfletcher

Platinum Member
Apr 16, 2005
2,569
2
81
Why just the 2? and not the 48/2 as part of the parenthesis?

I mean what if you had (48/2*9 + 48/2*3) then decide to pull out the 48/2 and get 48/2(9+3)
I believe that is what they are doing.

But your example is correct, if you evaluate it you get 288...
 

sactoking

Diamond Member
Sep 24, 2007
7,550
2,763
136
So you're saying that because a "/" was used, we have to assume that anything following it is the denominator? Is that a rule explicitly written anywhere? Also, the OP actually uses the symbol "÷" to imply division, and not "/." Does that change things?

I'm not saying we have to, I'm just saying we do.

Once you get into algebra in junior high or high school division becomes a lot less straightforward. You're no longer looking at 20÷5 or 4|64, you're looking at [3(a+b)]/[(x+3)(x-3)]. At this point in most students' minds the symbol "/" really stops meaning 'divided by' and starts meaning 'divisor'. The symbolic meaning is less of a verb and more of a noun from that point forward.

In student shorthand 3(a+8)/7(z-5) is an acceptable representation of what some here would want shown as [3(a+8)]/[7(z-5)] or what might be written as
3(a+8)
7(z-5)

It is not an attempt to show
3(a+8)(z-5)
7
which might be a literal interpretation of what was written.

The use of "/" becomes a simple representation for 'everything to the left of the divisor is the numerator and everything to the right of the divisor is the denominator'.

Beyond that the use of "÷" is easily mentally juxtaposed to "/" through the penetration of computers. "÷" is an 'outdated' symbol in the digital world. It doesn't appear on a standard keyboard and I had to look it up in an ASCII table to know it was alt246. I wouldn't be surprised if people saw "÷" and immediately thought "/" which as explained can easily be interpreted as a noun and not a verb in the context given.
 
Nov 29, 2006
15,677
4,150
136
without implying brackets though... isn't the 2x a part of the parenthesis even though it's outside of them?

But yeah.. who the hell cares and why is there a near 20 page thread about some obscure algebra problem?

/thread

I think people care because somewhere in our education system some are failing to teach algebra correctly. The big problem seems to come if you interperet the "/" symbol as a division symbol or a fraction symbol.

Since its a one line equation i personally inteperet it as a division symbol. If it was a fraction symbol i would have used another line to make it a 2 line equation. That is just me and the way i was taught...pre computers
 

Cogman

Lifer
Sep 19, 2000
10,278
126
106
288

Division and multiplication are on the same "level", in that case, you preform operations from left to right. Wolfram Alpha agrees with me.

This is why we need RPN

24 2 / 9 3 + * is so much clearer
 
Last edited:

Paul98

Diamond Member
Jan 31, 2010
3,732
199
106
I'm not saying we have to, I'm just saying we do.

Once you get into algebra in junior high or high school division becomes a lot less straightforward. You're no longer looking at 20÷5 or 4|64, you're looking at [3(a+b)]/[(x+3)(x-3)]. At this point in most students' minds the symbol "/" really stops meaning 'divided by' and starts meaning 'divisor'. The symbolic meaning is less of a verb and more of a noun from that point forward.

In student shorthand 3(a+8)/7(z-5) is an acceptable representation of what some here would want shown as [3(a+8)]/[7(z-5)] or what might be written as
3(a+8)
7(z-5)

It is not an attempt to show
3(a+8)(z-5)
7
which might be a literal interpretation of what was written.

The use of "/" becomes a simple representation for 'everything to the left of the divisor is the numerator and everything to the right of the divisor is the denominator'.

Beyond that the use of "÷" is easily mentally juxtaposed to "/" through the penetration of computers. "÷" is an 'outdated' symbol in the digital world. It doesn't appear on a standard keyboard and I had to look it up in an ASCII table to know it was alt246. I wouldn't be surprised if people saw "÷" and immediately thought "/" which as explained can easily be interpreted as a noun and not a verb in the context given.

That is very sloppy, and complicates things especially when you want to have more stuff after the / that isn't the denominator. If I write 1/2 + 3 it should mean exactly what it says, I should not have to figure out if something is implied or not.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |