A function (sometimes called a mapping) is the relation with the property that for each , there is only one such that , that is, each element in the domain of is only mapped to one element in the image or codomain.

A function can have multiple arguments, which is represented as an ordered pair / set. For instance, a two-argument function that simply multiplies its arguments is notated as . In general, a -ary function has a domain that is the Cartesian product of sets, so we can write as .