Mathematical Division of integers is neither commutative nor associative.
Mathematical Division of integers can be represented as following
a / b != b / a
(a / b) / c != a / (b / c)
Justifying
commutative property of mathematical Division of integers
a / b != b / a
If a = 4 and b = 2
Then 4 / 2 = 2 and 2 / 4 = 0.5
So, 4 / 2 != 2 / 4 as 2 != 0.5
Justifying
associative property of mathematical Division of integers
(a / b) / c != a / (b / c)
If a = 4, b = 2 and c = 8
Then (4 / 2) / 8 = 0.25 and 4 / (2 /
8) = 16
So, (4 / 2) / 8 != 4 / (2 / 8) as
0.25 != 16
No comments:
Post a Comment