⚠️ This forum has been restored as a read-only archive so the knowledge shared by the community over many years remains available. New registrations and posting are disabled.

All times are UTC + 8 hours




Post new topic Reply to topic  [ 85 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Maths question
PostPosted: Feb 7th, '12, 22:36 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
This photo has been circling facebook and has led to some... erm... 'interesting' discussions.

Attachment:
427568_312052082175313_192122810834908_892480_893825620_n.jpg
427568_312052082175313_192122810834908_892480_893825620_n.jpg [ 16.05 KiB | Viewed 2149 times ]


What is your answer?


Top
 Profile  
Reply with quote  
    Advertisement
 
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 22:45 
Bordering on Legend
Bordering on Legend
User avatar

Joined: Oct 24th, '10, 17:16
Posts: 338
Gender: Male
Are you human?: Some Time
Location: Chonburi Thailand
13


Top
 Profile  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 22:49 
Almost divorced
Almost divorced
User avatar

Joined: Nov 11th, '09, 03:13
Posts: 1004
Gender: Male
Are you human?: The top half is
Location: Chiang Mai, NW Thailand.
Yup, I'd go with 13


Top
 Profile  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 22:50 
Xtreme Contributor
Xtreme Contributor
User avatar

Joined: May 8th, '11, 20:54
Posts: 241
Gender: Male
Are you human?: yep
Location: Ballajura Perth Western Australia
0


Top
 Profile  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 22:50 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
And it begins. :headbang:


Top
 Profile  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 22:59 
Depends where you put the "brackets"...

It could be 0, or 13...


Top
  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 23:12 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
what brackets?


Top
 Profile  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 23:14 
The brackets which define the order of operation...


Top
  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 23:18 
Almost divorced
Almost divorced
User avatar

Joined: Nov 11th, '09, 03:13
Posts: 1004
Gender: Male
Are you human?: The top half is
Location: Chiang Mai, NW Thailand.
That's the point, there are no brackets.
It's down to operator precedence.
Each + is evaluated first, the last + 1 * 0 is evaluated as 0, as the * takes precedence over the +
All the maths I've been taught and all compilers (that I have ever used) work this way.


Top
 Profile  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 23:18 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
There are no brackets Rup. There doesnt need to be any brackets to define the order of operation. You could add brackets that would change the order of operation and have the same result, but you could also change the result.


Top
 Profile  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 23:20 
A posting God
A posting God
User avatar

Joined: Dec 10th, '11, 15:03
Posts: 2089
Gender: Male
Are you human?: What is human?
Location: Perth Hills
BIMDAS tells us that do the * operation first, then the + operations then the - operation.


Top
 Profile  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 23:23 
That's BODMAS...



B - Brackets first

O -Orders (ie Powers and Square Roots, etc.)

DM - Division and Multiplication (left-to-right)

AS - Addition and Subtraction (left-to-right)


Top
  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 23:24 
Almost divorced
Almost divorced
User avatar

Joined: Nov 11th, '09, 03:13
Posts: 1004
Gender: Male
Are you human?: The top half is
Location: Chiang Mai, NW Thailand.
No it doesn't, it tells us to go left to right first, but with */ higher than +-


Top
 Profile  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 23:27 
Almost divorced
Almost divorced
User avatar

Joined: Nov 11th, '09, 03:13
Posts: 1004
Gender: Male
Are you human?: The top half is
Location: Chiang Mai, NW Thailand.
VB and 4 ansi C compilers all say 13, that's good enough for me :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Maths question
PostPosted: Feb 7th, '12, 23:29 
DuiNui wrote:
the last + 1 * 0 is evaluated as 0, as the * takes precedence over the +

But that's an assumed "bracket".... if you just process it left to right, without precedence... then the last operand is a multiplication of the sum (addition and subtraction) of all the numbers before hand... (in itself an assumed bracket)... multiplied by 0.... therefore the answer would be zero...


Last edited by RupertofOZ on Feb 7th, '12, 23:31, edited 1 time in total.

Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 85 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

All times are UTC + 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group
Portal by phpBB3 Portal © phpBB Türkiye
[ Time : 0.135s | 18 Queries | GZIP : Off ]