In mathematics, a function is a relationship or rule that assigns each input exactly one output. This means that for every element in the domain (input), there is a unique element in the range (output).
If there is a table showing pairs of inputs and outputs, it demonstrates a function if each input corresponds to one and only one output. For instance, if an input value appears multiple times but always maps to the same output value, the table represents a function.