Commutative operation

A com­mu­ta­tive func­tion \(f\) is a func­tion that takes mul­ti­ple in­puts from a set \(X\) and pro­duces an out­put that does not de­pend on the or­der­ing of the in­puts. For ex­am­ple, the bi­nary op­er­a­tion \(+\) is com­mu­ta­tive, be­cause \(3 + 4 = 4 + 3.\) The string con­cate­na­tion func­tion concat is not com­mu­ta­tive, be­cause concat("3","4")="34" does not equal concat("4","3")="43".



  • Mathematics

    Math­e­mat­ics is the study of num­bers and other ideal ob­jects that can be de­scribed by ax­ioms.