A Handbook of Mathematical Discourse
arity
The arity of a function is the number of arguments taken by the function. The word is most commonly used for symbols denoting functions.
Example 1 The arity of the function sin is one.
Example 2 The arity of $+$ is two. It takes two arguments.
A function that takes $n$ inputs is also called a function of $n$ variables. In using the notation given here the order in which the variables are listed is important; for example, one cannot assume in general that $f(2, 3) = f(3, 2)$.
Remark 1 A function of two variables may be analyzed as a function $f : \mathbb{R} \times \mathbb{R} \to \mathbb{R}$ where $\mathbb{R} \times \mathbb{R}$ is the cartesian product of $\mathbb{R}$ with itself. In that sense it is a function with one input, which must be an ordered pair. I take that point of view in my class notes [Wells, 1997]; students in my class from time to time ask me why I don’t write $f((x, y))$.
Remark 2 One sometimes finds functions with variable arity. For example, one might use MAX for the maximum of a list, and write for example
$$\text{MAX}(9, 9, -2, 5) = 9$$
Of course, one might take a point of view here analogous to that of Remark 1 and say that MAX has one input that must be a list.
Example 3 Computer languages such as Lisp and Mathematica$^{\circledR}$ have some functions with variable arity. The expression $+(3, 5, 5)$ in Lisp evaluates to 13, and so does the expression Plus[3,5,5] in Mathematica.
In general, variable arity is possible only for functions written in prefix or postfix notation with delimiters. When the symbol for addition (and similar symbols) is written in infix, Polish or reverse Polish notation, the symbol must have exactly two arguments. Thus the symbol $+$ in Mathematica has arity fixed at 2. Citations: (15), (194), (190).
Acknowledgments: Lou Talman.
Pages 19–20 of the book (PDF).