Thread: 62(1+2) = ?
View Single Post
Old April 29th, 2011, 10:35 AM   #80 (permalink)
novox77
Leeeroy Jennnkinnns!
 
novox77's Avatar
 
Join Date: Jul 2010
Posts: 3,968
 
Device(s): Evo 4G, 3D, LTE
Carrier: Not Provided

Thanks: 1,190
Thanked 3,270 Times in 1,410 Posts
Default

In case no one has bothered to wiki this subject yet...
Order of operations - Wikipedia, the free encyclopedia

And the part of interest:


Gaps in the standard

There exist differing conventions concerning the unary operator − (usually read "minus"). In written or printed mathematics, the expression −3^2 is interpreted to mean −(3^2) = −9, but in some applications and programming languages, notably the application Microsoft Office Excel and the programming language bc, unary operators have a higher priority than binary operators, that is, the unary minus (negation) has higher precedence than exponentiation, so in those languages −3^2 will be interpreted as (−3)^2 = 9. [1]. In any case where there is a possibility that the notation might be misinterpreted, it is advisable to use brackets to clarify which interpretation is intended.
Similarly, care must be exercised when using the slash ('/') symbol. The string of characters "1/2x" is interpreted by the above conventions as (1/2)x. The contrary interpretation should be written explicitly as 1/(2x). Again, the use of brackets will clarify the meaning and should be used if there is any chance of misinterpretation.

The takeaways are highlighted.

RED: neither 9 or 1 is correct or incorrect. The person posing the problem (not you Vihzel) is WRONG for not being explicit.

GREEN: if there is the possibility of ambiguity of INTENT, use parentheses!


__________________

The good thing about science is that it's true whether or not you believe in it. -Neil deGrasse Tyson

Help me out: Sign up with Dropbox and we both get 500MB extra space. Thanks!
novox77 is offline  
Last edited by novox77; April 29th, 2011 at 11:11 AM. Reason: fixed the loss of superscripts representing exponents. carets added.
Reply With Quote
The Following User Says Thank You to novox77 For This Useful Post:
Ichapp (April 30th, 2011)