Commutative
Configurable order of numbers:
x+y = y+x
xy = yx
Associative
Order that multiplication is applied :
(x+y)+z …Configurable order of numbers:
x+y = y+x
xy = yx
Order that multiplication is applied :
(x+y)+z …Originally written as an assignment for Ruby Mendicant University.
matrix is part of the Ruby Standard Library
A note …
read more