Norway
Offline
Sr. Member
Karma: 4
Posts: 422
microscopic quantum convulsions of space-time
|
 |
« Reply #90 on: April 24, 2011, 09:44:28 am » |
Well, most calculators are wrong then. Google+Wolfram says so  Never occurred to me before though, that the implied multiplication of a parenthesis have a higher priority than the usual multiplication/division priority. A bug? On all those calculators? Btw the same goes for implied multiplication of variables. On my casio, if I set A=12 (or 9+3 if you will), and then do 48/2A I get 2. But if I do 48/2*A I get 288. Btw#2: Wolfram got 2 there too  I didn't know it could handle that, pretty cool! Including the multiplication yields 288 for Mr. W also.
|
|
|
|
|
Logged
|
|
|
|
|
Norway
Offline
Sr. Member
Karma: 4
Posts: 422
microscopic quantum convulsions of space-time
|
 |
« Reply #91 on: April 24, 2011, 05:04:50 pm » |
It is a genuine, gold-plated, certificated ambiguous question. Hehe ok. Prudent programmers simply don't use such sloppy coding. Must be why this didn't really occur to me before 
|
|
|
|
|
Logged
|
|
|
|
|
field road, jupiter creek
Offline
Sr. Member
Karma: 2
Posts: 342
Arduino rocks
|
 |
« Reply #92 on: April 24, 2011, 06:41:28 pm » |
It's not ambiguous!
You treat 2(9+3) as a "term".
48/24 = 2
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #93 on: April 24, 2011, 06:43:27 pm » |
It's not ambiguous!
You treat 2(9+3) as a "term".
48/24 = 2
Wrong. It's ambiguous - there is no 'right answer' to this.
|
|
|
|
|
Logged
|
|
|
|
|
field road, jupiter creek
Offline
Sr. Member
Karma: 2
Posts: 342
Arduino rocks
|
 |
« Reply #94 on: April 24, 2011, 08:24:39 pm » |
Say what?
It's, wait for it peeps....
ALGEBRA
There are very definite rules to follow, rules that are internationally agreed upon. This was never a programming question, it was always an algebra problem.
Rather than run off and look at the first site google spat out, I asked a couple of people with PhD's in maths, physics, accounting and economics. Ok, the economics prof was kinda vague, but hey, it's not like a real science anyway!
I let the Math prof read this topic last night and she was still laughing about this morning!
|
|
|
|
|
Logged
|
|
|
|
|
North Yorkshire, UK
Offline
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #95 on: April 24, 2011, 08:32:26 pm » |
There are very definite rules to follow, rules that are internationally agreed upon. Unfortunately in this case there aren't specific rules to follow apart from saying that the question is bogus as it's missing an operator and most likely some other stuff to be on the safe side.
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area (USA)
Offline
Faraday Member
Karma: 78
Posts: 5453
Strongly opinionated, but not official!
|
 |
« Reply #96 on: April 24, 2011, 08:57:10 pm » |
This was never a programming question, it was always an algebra problem. Says who? If it was algebra, it wouldn't have used a "division sign." (come to think of it, not many programming languages have that either.) Both of these are fine: 48 ------- (9+3) 2
and 48 --------- 2(9+3)
You treat 2(9+3) as a "term". Wikipedia says In elementary mathematics, a term is either a single number or variable, or the product of several numbers or variables separated from another term by a + or - sign in an overall expression. and this doesn't fit. Why is that any more a term than (48/2)(9+3) ? It's not a polynomial with multiplicative terms added together... (although I'm inclined to agree that there would be less argument about 48÷2XIf it were algebra, you might automatically assume that simple constants were already simplified.)
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 1
Posts: 150
It was all digital
|
 |
« Reply #97 on: April 27, 2011, 09:09:11 am » |
I'll try to follow the rules from: http://en.wikipedia.org/wiki/Operator_precedence48/2(9+3) = ? (implicit multiplication between 2 and the starting bracket) => 48/2*(9+3) = ? (since no information about base is given the often used base 10 is assumed) => 48/2*(9+3) = ? , base 10 (Order no. 1 in precedence) => 48/2*12 = ? , base 10 (Order no. 2 in precedence) => 48/2*12 = ? , base 10 (Order no. 3 in precedence - diversion and multiplication has same rank - reading from left to right) => 288 = ? , base 10 (Order no. 4 in precedence) => 288 = ? , base 10 q.e.d. Ohh.. Wolfram says 288 - I guess there is no reason to argue.....  -Fletcher Update: Python says 288 too: Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> 48/2*(9+3) 288 >>>
|
|
|
|
« Last Edit: April 27, 2011, 09:24:42 am by Fletcher Chr »
|
Logged
|
|
|
|
|
Portugal
Offline
God Member
Karma: 5
Posts: 962
|
 |
« Reply #98 on: April 27, 2011, 11:14:21 am » |
Just add a rotational matrix, integrate the hell out of it, derive two or three times, do some quaternion calculation in that and then divide by 42.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 1
Posts: 150
It was all digital
|
 |
« Reply #99 on: April 27, 2011, 01:43:27 pm » |
What does Python say with the equation exactly as originally stated? More or less. The only bogus part of the question is the missing multiplication sign though without this sign the equation is not valid. Then it's a trick question and real answer = ø. It it not right to evaluate 2*(9+3) first due to distributive law: http://en.wikipedia.org/wiki/Distributivity48/2*(9+3) = ? => (distributive law) (48/2*9) + (48/2*3) = ? => 216 + 72 = ? => 288 = ? q.e.d. -Fletcher
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 240
Posts: 16449
Available for Design & Build services
|
 |
« Reply #100 on: April 27, 2011, 03:23:50 pm » |
I can't believe this thread is still going.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #101 on: April 27, 2011, 03:40:45 pm » |
Wouldn't the dolphins know?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 240
Posts: 16449
Available for Design & Build services
|
 |
« Reply #102 on: April 27, 2011, 05:18:24 pm » |
Only if the answer was 42.
Course then the question would have to been: Please solve: 6 ( 8 )=?
|
|
|
|
« Last Edit: April 27, 2011, 07:58:48 pm by CrossRoads »
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19006
I don't think you connected the grounds, Dave.
|
 |
« Reply #103 on: April 27, 2011, 05:50:15 pm » |
Dolphino. Water resistant to 10m. Now I'm confused. I know that I'm water resistant to rather more than ten metres, but when someone with a US call-sign says "10m", I wonder if they mean "ten miles", in which case, the Marianas Trench begins to look a little shallow.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Netherlands
Offline
Sr. Member
Karma: 2
Posts: 431
A naughty mind is a joy forever.
|
 |
« Reply #104 on: April 27, 2011, 06:28:40 pm » |
Dolphino. Water resistant to 10m. Now I'm confused. I know that I'm water resistant to rather more than ten metres, but when someone with a US call-sign says "10m", I wonder if they mean "ten miles", in which case, the Marianas Trench begins to look a little shallow. Nah... Call sign, Ham..., 10M, I Guess he's talking amateur shortwave radio, unless something like a 32.81 ft/10.936 yard band exists. At frequencies higher as 30 Mhz a dolphin may... start leaking, that's the problem. Talking about radio, why is there no "Let's wait till SETI gives us the answer" in the poll ?
|
|
|
|
|
Logged
|
|
|
|
|
|