Name of Property: The Order Of Parameters in a Function Does Not Matter

636 Views Asked by At

As the title says: I have a function where the order of parameters does not matter. An example would be ADD: ADD(1,2) and ADD(2,1) can be used interchangeably, the order of parameters does not matter. DIVIDE does not carry this property.

What is the property's name?

2

There are 2 best solutions below

0
On BEST ANSWER

In mathematics, it is called "symmetry". See Function of several real variables - Symmetry (Wikipedia)

For an operation, rather than a function, "commutative" would be more usual. (Thanks Noah)

If you are thinking of computing languages, which your syntax suggests, then a different term might be preferred but this is not the place to ask about that.

0
On

This is the commutative property.