Jump to content
The mkiv Supra Owners Club

Basic maths? Think you know?


caseys

Recommended Posts

  • Replies 74
  • Created
  • Last Reply

Top Posters In This Topic

It works the same way as brackets. It seperates the two different sums. If it was all connected then it would be 15

 

Exactly. I was trying to think of a decent working example but I could only think of crappy ones reguarding peoples pay lol.

 

1+1+1+1x0 = 3

1 + 1 + 1 + 1 x 0 = 0

 

With the spaces it becomes singular operations for each equation.

Link to comment
Share on other sites

What is the answer to this then?

 

5+2 ................................................................................................................................................................................................x3

 

-5

 

I wasn't thinking of anything quite as mental as that. More...

 

5+2 x 5-2

 

Your answer would be 13, mine would be 21.

Link to comment
Share on other sites

Just shows how much we rely on computers now, and how many IT chaps there are here, that anything other than 0 is being discussed.

 

That's my take on it really. I can see how it can be mistaken as being 15 but I can't see the true answer being anything other than 0, due to the way the equation is presented.

Link to comment
Share on other sites

I know how you are like from some of our other discussions on this forum ... so I have to go to this length to clarify things equation. +, -, X are binary operators. They need to have some integers (positive or negative numbers) on both sides to perform the operation. You cannot have a space infront of X and say that it is should be treated as ')'. There are loads of other characters any symbols. What about a newline character, like in my example above. There is a reason why there is BODMAS and there is reason why there is no 'BOD MAS' (with space as operator).

 

SPACE in an equation equals NULL or Nothing, or else a statement with ' ' becomes an invalid statement.

 

To make things even more clear substitute ' ' with another character say 'p' then see how the above statement is INVALID (5+5+5-5+5+5-5+5pXp0).

Link to comment
Share on other sites

I know how you are like from some of our other discussions on this forum ... so I have to go to this length to clarify things equation. +, -, X are binary operators. They need to have some integers (positive or negative numbers) on both sides to perform the operation. You cannot have a space infront of X and say that it is should be treated as ')'. There are loads of other characters any symbols. What about a newline character, like in my example above. There is a reason why there is BODMAS and there is reason why there is no 'BOD MAS' (with space as operator).

 

SPACE in an equation equals NULL or Nothing, if not it is an invalid equation.

 

To make things even more clear substitute ' ' with another character say 'p' then see how the above statement is INVALID (5+5+5-5+5+5-5+5pXp0).

 

Everything you have just written is computer logic orientated though.

Link to comment
Share on other sites

I dont think it is the problem with the wavelength to be honest ... It has only one answer if it is a mathematical statement (not an english statement) and it is 15. Dont add common sense from english to maths ;-)

 

' ' does not mean wait for the previous part of the statement to compute and then continue.

Link to comment
Share on other sites

Me and Scott are on the same wavelength but this could be argued about for months coz everyone has their own opinions on how its done. I hated maths in school and really cba with the hassle. 0 for the win :D

 

There is no opinion in math :) There are rules. The rules say it is 15. IMO 'x' shouldn't be used as a symbol for multiplication. If it was in brackets like it should be then I don't think we would be having this discussion.

Link to comment
Share on other sites

There is no opinion in math :) There are rules. The rules say it is 15. IMO 'x' shouldn't be used as a symbol for multiplication. If it was in brackets like it should be then I don't think we would be having this discussion.

 

Exactly, the rules state that brackets should be used (if required) and spaces shouldn't.

 

However, in this case the rules aren't being adhered to so opinions can be formed on the structure of the equation and the answer it totals.

 

IMO the answer is zero for the reasons I have given. The following equation isn't formatted properly...

 

5+4 x 4-1

 

It SHOULD be (5+4)x(4-1), or (5+4)*(4-1) if that's what you prefer... or X lol.

 

Using common sense if you were presented with 5+4 x 4-1 you would most likely give the answer 27. If you wanted to be pedantic you could point out that the person who wrote it used the wrong syntax and that there should be brackets in it or else it will be taken as 20.

 

Of course there would be no argument whatsoever if the equation was laid out properly.

Link to comment
Share on other sites

I agree with everyone.

 

Here are some scenarios:

 

Answer from Google = 15 (it follows BODMAS)

Answer from Calculator = 0 (it doesn't follow BODMAS)

Answer from the following Javascript code in HTML = 15

 




<br />
document.getElementById('answer').innerHTML = 5+5+5+5+5+5+5+5*0;<br />



 

Had the list 5's been wrapped in brackets, the answer would have been 0.

 

 

I personally would have said 0 to start with, but I have to go with the computing instinct and say 15 here.

Link to comment
Share on other sites

I agree with everyone.

 

Here are some scenarios:

 

Answer from Google = 15 (it follows BODMAS)

Answer from Calculator = 0 (it doesn't follow BODMAS)

Answer from the following Javascript code in HTML = 15

 




<br />
document.getElementById('answer').innerHTML = 5+5+5-5+5+5-5+5*0;<br />



 

Had the list 5's been wrapped in brackets, the answer would have been 0.

 

 

I personally would have said 0 to start with, but I have to go with the computing instinct and say 15 here.

 

That isn't the question though. The question is 5 + 5 + 5 etc, not 5+5+5. With the latter the answer is obvious, it's because of the cunning (or stupid) use of the spaces that throws it all out of the norm. It doesn't follow any of the basic rules for a maths equation right from the off hence the debate :)

Link to comment
Share on other sites

I agree with everyone.

 

Here are some scenarios:

 

Answer from Google = 15 (it follows BODMAS)

Answer from Calculator = 0 (it doesn't follow BODMAS)

Answer from the following Javascript code in HTML = 15

 




<br />
document.getElementById('answer').innerHTML = 5+5+5-5+5+5-5+5*0;<br />



 

Had the list 5's been wrapped in brackets, the answer would have been 0.

 

 

I personally would have said 0 to start with, but I have to go with the computing instinct and say 15 here.

 

You would have got 15 from your calculator if it was a scientific one.

Link to comment
Share on other sites

That isn't the question though. The question is 5 + 5 + 5 etc, not 5+5+5. With the latter the answer is obvious, it's because of the cunning (or stupid) use of the spaces that throws it all out of the norm. It doesn't follow any of the basic rules for a maths equation right from the off hence the debate :)

 

It's the same if you added spaces. Whatever you do, it will always bring back 15 without brackets. I thought it was 0 aswell, but you can't argue with the mathematics of programming, otherwise the world would be a very messy place right now. I am I misunderstanding it?

 

You would have got 15 from your calculator if it was a scientific one.

 

Yeah I used the basic Windows one. :rolleyes:

Link to comment
Share on other sites

It's the same if you added spaces. Whatever you do, it will always bring back 15 without brackets. I thought it was 0 aswell, but you can't argue with the mathematics of programming, otherwise the world would be a very messy place right now. I am I misunderstanding it?

 

With the spaces in the rules are broken though, if it still works then it's because the computer is dropping them assuming user error.

 

I'm now wondering if I'm perhaps giving the original "mastermind" behind this riddle too much credit. Perhaps they were just some plum who put 1 + 1 instead of 1+1 lol.

Link to comment
Share on other sites

I've never heard of spaces being used to enforce operator precedence. If they were my hand-written equations would be in serious trouble. I'm firmly in the BODMAS camp. BODMAS isn't a computing thing, it's a maths thing. Any calculator worth its salt will follow BODMAS: the Windows calculator in basic mode doesn't follow it, but does when in scientific mode IIRC.

Link to comment
Share on other sites

it's 15, and Google agrees with me. :)

 

It would have to be (5+5+5-5+5+5-5+5) x 0 to produce zero.

 

It's nothing to do with computers. When I was taught that brackets and multiplication and division took precedence over addition and subtraction the Lyons Leo III was cutting edge technology. :)

 

 

(EDIT: Anyway, even if we were talking about computers, the code to parse a maths expression would ignore the spaces.)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.