Anonymous user
Talk:Exponentiation order: Difference between revisions
m
→Functions: added comments about the "right way".
(→Functions: vagueness?) |
m (→Functions: added comments about the "right way".) |
||
Line 6:
:: Why? Somehow people don't find "a - b - c" swimming in vagueness. And in the languages I know, if there's an pow operator, 5**3**2 is always interpreted as 5**(3**2), just like in maths. --[[User:Ledrug|Ledrug]] ([[User talk:Ledrug|talk]]) 03:31, 19 March 2014 (UTC)
::: I also don't believe that a-b-c is vague, but then, subtraction isn't what is being discussed. The ''why'' is simple to explain: because not all computer languages treat multiple (or chained) exponentiation the same. 5**3**2 is not always interpreted as 5**(3**2). If that expression would be treated universally the same, there wouldn't be a need for this Rosetta Code task. I'm not going to pontificate whether or not which manner of evaluation is correct; the main thing I'm interested is how various computer languages evaluate the expression, and what value is produced. It's not a matter of doing it "the right way", the way that a computer language does it, is the way it is. To quote my niece, it is what it is. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 03:56, 19 March 2014 (UTC)
|