Go Down

### Topic: 48÷2(9+3) = ? (Read 10975 times)previous topic - next topic

#### AWOL

#15
##### Apr 14, 2011, 11:00 pm
@Biocow
EBCDIC
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

#### Benji

#16
##### Apr 15, 2011, 09:03 am
I would like to recall my answer and give the only, true, eternal answer.

Now you can all go to rest and relax yourselves, for the mystery has been solved.

#### AWOL

#17
##### Apr 15, 2011, 09:05 am
Quote

But 42! is something like 1.4 x 1051
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

#### Benji

#18
##### Apr 15, 2011, 09:08 am

Quote

But 42! is something like 1.4 x 1051

- hold the keyboard steadily and move it rapidly in the direction of your head untill you hear a crack

#### AWOL

#19
##### Apr 15, 2011, 09:46 am
If 42 (0x2A) is the answer, but 0x2b | ~0x2B is the question, I think there is something very seriously wrong with arithmetic as we know it.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

#### CowJam

#20
##### Apr 15, 2011, 10:25 am

I've seen this on 2 different forums and it seems about 50/50 that people get it right. And hilariously the people who don't are adamant they are right. Let's see what happens here.

Seems about half of people can't remember BEDMAS.  I wonder if they're the same half who are sub-average?

#### AWOL

#21
##### Apr 15, 2011, 10:28 am
Quote
Seems about half of people can't remember BEDMAS.

I always get confused by legal/academic jargon - is that before or after Michaelmas term?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

#### westfw

#22
##### Apr 15, 2011, 11:19 am
Yeah, I would bet that about 50% of the people think the multiplication in  2(9+3) is more strongly grouped together than the division in  48 / 2, in spite of missing parens and a common rule that say to evaluate left to right in the absence of other clues.
Then there are the folks that think multiplys have precedence over division at the same lexical level anyway.  (My Dear Aunt Sally!)

Don't put expressions like this in your code.  Parenthesis are cheap and useful.

#### Simpson_Jr

#23
##### Apr 15, 2011, 11:31 amLast Edit: Apr 15, 2011, 12:43 pm by Simpson_Jr Reason: 1
I know for sure it's 2 times half the outcome...

By what I've learned I'd say 288, but presented with such a question in an important Job I'd ask for a better notation.

Anyway, Biocow, are we doing __your__ homework here ?

#### AWOL

#24
##### Apr 15, 2011, 11:51 am
Quote
and a common rule that say to evaluate left to right in the absence of other clues.

That is such a left-to-right, Western centric view, isn't it?

Mathematics is supposed to be a universal language, so parentheses really are the only way to truly express this one unambiguously - I'm with westfw on that.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

#### mowcius

#25
##### Apr 15, 2011, 12:48 pm
Quote
BEDMAS

BIDMAS (Brackets, Indices, Division, Multiplication, Addition, Subtraction)
BODMAS (Brackets, Other,     "                "                        "                "         )
BEDMAS (Brackets, Exponents,   "           "                       "              "           )

Fun fun

Quote
so parentheses really are the only way to truly express this one unambiguously

+1

#### AWOL

#26
##### Apr 15, 2011, 02:33 pmLast Edit: Apr 15, 2011, 02:40 pm by AWOL Reason: 1
Quote
BIDMAS (Brackets, Indices, Division, Multiplication, Addition, Subtraction)

The left-to-right mnemonic further reinforces the assumption that division has a higher priority than multiplication.

Parentheses - they're the only way.

Or, write it like BIDMAS

(but with the super/sub superposed, not spaced like that)
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

#27
10 PRINT CHR\$(7)
20 GOTO 10

#### Simpson_Jr

#28
##### Apr 15, 2011, 03:57 pm
Let's settle for the average, 145

#### Benji

#29
##### Apr 15, 2011, 03:59 pm
What the... if even calculators aren't conclusive in this, it's just a point of bad notation

Go Up

Please enter a valid email to subscribe