The relation refers to a relationship between the different sets of elements of the values with the complete pair of sets. These elements set in their first set are known as Domains. Further, which is related to the whole element set called the Range. Whereas Functions are known as relations are the complete set of the output.
Mainly, the relation is the main output between the output and input.
Relations are of many types. The list of the different kinds of relationships is below:
Consider X and Y as two sets that are not empty. f : X → Y is the mapping or function between X and Y by which each element x ∈ X corresponds to an element y ∈ Y. Domain of X is composed of elements of X and the codomain of X is composed of elements of Y. Range of X is a subset of Y that represents the image of the element of X.
Functions are of different types.