Can you do this simple maths problem?

Hehehe operator precedence is defined by operator associativity. This is just stuff that comes later in school. Just wait till you learn that a*b is not always b*a.

What we have here is trying to apply the associative law to a/b*c, which would be (a/b)*c=a/(b*c), analogous with (a*b)*c=a*(b*c) but there is no law which proves it is possible. So far. lol.


multiplication and division have the same precedence (so are evaluated from left to right).
The second does not follow out of the first. And specifically in programming languages, some do it in reverse order. ...
 
I have a degree in maths and work as a computer programmer...

I'm talking about standard operator precedence in mathematics anyway.
 
I have a degree in maths and work as a computer programmer...
Interesting. This is stuff which is easily forgotten since its just pure math. I am a bit amazed that you believe in strict evaluation order, might be alcohol. :D (a+b-c) can be done in any order, really. ( (a+b)+c = (a+(b+c) ).
 
But the precedence of multiplication and division are the same. Obviously if an operator is associative it doesn't matter which order you evaluate. If it isn't associative you evaluate from left to right (most of the time, not composition of functions nor power towers, for instance).
 
As has been said, it's 288.

It would be 2 if the question read 48÷(2(9+3)) = ?

It makes more sense if you rewrite 48÷2(9+3) = ? as (48÷2)(9+3) = ?, which is what is going on

I took math in University at a fairly high level, and if there's multiple crap in the denominator and you use the ÷ or / symbol (which nobody does, but whatever), you need brackets. If you don't have brackets, not all of the things are in the denominator.
 
Yes, or

Code:
   48
---------
  2(9+3)
 
Yes, or

Code:
   48
---------
  2(9+3)

Yeah, but that's 48/(2(9+3)), not 48/2*(9+3)

Without brackets, you divide first and multiply later. The (9+3) isn't in the denominator unless you explicitly specify that - with brackets (or by doing what you did)
 
I know!

Shocking that some people don't know that multiplication and division have equal precedence anyway.
 
48 / 2 * (9+3)
48 / 2 * 12
48 / 2 = 24
24 * 12 = 288

bidmas
 
ParadigmShifter said:
Obviously
Well but thats what the trick here is. To see that it cant be done in any order, in other words, the associative law not applying. Its not obvious to everyone...
 
*golfclap* for Quackers, 2nd time lucky.
 
Well but thats what the trick here is. To see that it cant be done in any order, in other words, the associative law not applying.

There is no trick...
 
pfft, i don't have a maths degree and i can do this...useless :P
 
On your second attempt Quacks.
 
Which were invented in India.
 
Back
Top Bottom