|
Article on other languages:
|
In mathematics, the codomain, or target, of a function f : X → Y is the set Y. Unlike the range, which is a consequence of the definition of a function, the codomain is part of the definition of a function. The range is a subset of the codomain and depends upon (i.e. is a consequence of) the definition of the domain, codomain, and map of a function. The domain of f is the set X. ExamplesAs an example, let the function f be a function on the real numbers: defined by The codomain of f is
We can define an alternative function g thus: While f and g map a given x to the same number, they are not, in the modern view, the same function because they have different codomains. To see why, suppose that we define a third function h: We must define the domain of h to be
Now let's define the compositions
As it turns out, This unclarity should be avoided in formal work. Function composition therefore requires by definition that the codomain of the function on the right side of a composition (not its range, which is a consequence of the function and is said to be indeterminate at the level of the composition) must be the same as the domain of the function on the left side. The codomain affects whether a function is a surjection. In our example, g is a surjection while f is not. The codomain does not affect whether a function is an injection. A second example of the difference between codomain and range can be seen by considering the matrix of a linear transformation. By convention, the domain of a linear transformation associated with a matrix is Rn and its codomain is Rm, where the matrix is |
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net