Function codomain
Given a function f: A → B, the set B is called the codomain of f. The codomain is not to be confused with the range f(A), which is in general only a subset of B.Example
Let the function f be a function on the real numbers:
- f: R → R
- f: x → x2
- 0 ≤ f(x) < ∞
- g: R → R+
- g: x → x2
The codomain can affect whether or not the function is a surjection; in our example, g is a surjection while f is not.
See also: Function domain, Function range
