do a simple maths problem
Moderator: Forum Moderators
-
- Berk
- Posts: 10353
- Joined: December 7th, 2004, 17:02
- Location: Oklahoma City, OK, USA
- Contact:
do a simple maths problem
Do this maths problem. It's really easy, yet a surprising number of people get it wrong.
Solve this: 1 - 3 x 4 + 7 = __
Solve this: 1 - 3 x 4 + 7 = __
-
- Site Owner
- Posts: 9597
- Joined: May 16th, 2005, 15:31
- Location: Coventry, UK
- Contact:
Code: Select all
1 - 3 * 4 + 7 = (-3 * 4) + 1 + 7 = -12 + 1 + 7 = 8 - 12 = -4
(this is not, in fact, a code)
Anyone who says otherwise should debate it on /b/.
-
- Zombie
- Posts: 2101
- Joined: February 20th, 2005, 21:31
ProfHawking wrote:I wouldnt be 100% sure how to do it unless it were in context.
I see three methods:
((1-3)*4)+7 = -1
1-(3*4)+7 = -4 I would go with this one personally
(1-3)*(4+7) = -22
If in doubt, use bracketspam
this is pretty much what i did in my head and i was about to post before i saw this, i came out with -1 from doing it how i would normally do maths and how i expect most people do instinctually due to the presentation of the question, then after rereading the question i saw the way to come up with -22 and then again i looked at it and saw the way for -4. i couldnt see any other it could work
This.friznit wrote:It's just convention, so everyone knows to use the same order of operations applied to each variable without having to spam brackets everywhere:
Brackets
Order
Division
Multiply
Add
Subtract
Ed.: Note that Multiply/Div take the same precedence though.
Also, what Fab said.
So:
1-3x4+7=X
1-((3x4)+7)=X
1-(12+7)=X
1-19=X
-18=X
-
- Weighted Storage Cube
- Posts: 7167
- Joined: February 26th, 2007, 17:26
- Location: Middle England, nearish Cov
Multiplication has a higher precedence than anything else in this statement. Addition and subtraction have the same precedence as each other.
Bearing in mind this is an in-order operation, not pre or post order, therefore when faced with items on the same level, you go left to right.
So, 3x4 = 12
1 - 12 = -11
-11 + 7 = -4
Bearing in mind this is an in-order operation, not pre or post order, therefore when faced with items on the same level, you go left to right.
So, 3x4 = 12
1 - 12 = -11
-11 + 7 = -4
I sincerely hope you're trolling. Where did the extra brackets come from?Dog Pants wrote:This.
So:
1-3x4+7=X
1-((3x4)+7)=X
1-(12+7)=X
1-19=X
-18=X
Let's see. First of all, we're dealing with addition here. Multiplication takes precedence over addition and subtraction, therefore we're we have three operands, as subtraction can be considered as the addition of a negative number. Therefore, the equation can be written as:
(1) + (-3x4) + (7) = X
Note that the brackets do not make a difference in this case, they're only there for emphasis:
1 + -3x4 + 7 = X
Now, to remove all confusion, and to make it easier to understand, we will execute the multiplication.
1 - 12 + 7 = X
Knowing you all, this equation still has 3 equally probable outcomes but before those rusty cogwheels start cranking again let's do the additions (and subtraction).
X = -4
If you're wondering why I'm bitter about this, I saw the exact same conversation go down on 4chan, except there people were actually trolling.
Last edited by Baliame on June 18th, 2010, 11:45, edited 2 times in total.
That's because it's horrible site.I saw the exact same conversation go down on 4chan, except there people were actually trolling
Personally I now understand the rules that are expected to be applied to this equation, but I still don't know why. It seems arbitrary. I don't particularly have much respect for this kind of pure maths logic.