Encyclopedia > Function codomain

  Article Content

Function codomain

Given a function fA → 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: RR

defined by

f: xx2

The codomain of f is R, but clearly f(x) never takes negative values. The range is in fact the set R+ of non-negative reals, the interval [0,∞):

0 ≤ f(x) < ∞

One could have defined the function g thus:

g: RR+
g: xx2

While f and g have the same effect on a given number, they are not, in the modern view, the same function since they have different codomains.

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



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Ocean Beach, New York

... 5.1% from 18 to 24, 32.6% from 25 to 44, 31.2% from 45 to 64, and 9.4% who are 65 years of age or older. The median age is 42 years. For every 100 females there are 126.2 ...

 
 
 
This page was created in 24 ms