What is difference between function and relation. State some examples.
Answers
Step-by-step explanation:
A relation is a set of inputs and outputs that are related in some way. When each input in a relation has exactly one output, the relation is said to be a function. ... For a relation to be a function, we must be able to determine an output given an input
l hope it will help you
A function is a particular kind of relation between sets. A function takes every element x in a starting set, called the domain, and tells us how to assign it to exactly one element y in an ending set, called the range.
For example, each person is in the following table is paired with a number representing his or her height:
Alex → 180 Claudia → 165 Gilbert → 204 Judith → 165
The given relation {(Alex, 180), (Claudia, 165), (Gilbert, 204), (Judith, 165)} is a function as every person is pairs with exactly one number, their height. The domain is (Alex, Claudia, Gilbert, Judith). The range is (165, 180, 204).
Remember that all functions are relations, but not all relations are functions. For instance, matching a person’s age with their height does not give a function: Say Claudia and Gilbert are both 15. In this case, 15 would get paired with both 165 and 204, meaning that every age is not paired with exactly one height