2 ms·
Hmm! Well I took a shot at it on python "Python 2.7.2 (default, Jun 20 2012, 16:23:33) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on d
by joyeuse6701 14y ago
Hmm! Well I took a shot at it on python
"Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin"
http://i.imgur.com/2B4T0nn.png http://i.imgur.com/2B4T0nn.png
the first 2 outputs are the same, demonstrating that commutative property holds. the next pair of outputs seems to indicate that commutative is failing (but this may be associative in the background). The third pair of outputs reveals explicitly that associative fails. So it's the 2nd pair that is probably causing the confusion in understanding since a lack of parenthesis seems to imply that we aren't looking at some sort of associativity when we really are.
Now, if we go to code bin and run the same test:
http://codepad.org/tBH9PgJE http://codepad.org/tBH9PgJE
There is no discrepancy, and that's because of rounding.
Now it is clear to me the confusion, and I hope that helps illustrate some of the issues for others!