Given a function f: A → B, the set f(A) is called the range of f. The range is not to be confused with the codomain B. Generally the range is only a subset of the codomain.
Let the function f be a function on the real numbers:
Example
defined by
The codomain of f is R, but clearly f(x) never takes negative values, and thus the range is in fact the set R+ -- non-negative reals, ie the interval [0,∞):
See also: Function codomain, Function domain, Injective, Surjective, Bijective