Re:Why Operators Are Useful
by frabert on Saturday March 16, 2019 @02:43PM
(#19409423)
Commutatitivity does not need to always hold. Multiplication is not commutative on matrices, but we still use it often and write it as a product nonetheless
[ Parent
| on HN ]
In mathematics, the ‘multiplication’ operation is not assumed to be commutative, whereas the ‘addition’ operator is used specifically to indicate commutativity. So, for example, using the plus sign for string concatenation goes against this tradition.
Re:Why Operators Are Useful
by whatshisface on Saturday March 16, 2019 @09:29PM
(#19411590)
Python actually supports a special operator @ for non-commutative matrix products.