A relation is a set of inputs and outputs, and a function is a relation with one output for each input.
What is the definition of relation and function?
A relation between two sets is a collection of ordered pairs containing one object from each set. ... A function is a type of relation. But, a relation is allowed to have the object x in the first set to be related to more than one object in the second set.
What is relation and function example?
A function is a relation in which each input has only one output. ... x is not a function of y, because the input y = 3 has multiple outputs: x = 1 and x = 2. Examples: \: y is a function of x, x is a function of y. : y is not a function of x (x = 3 has multiple outputs), x is a function of y.