In
mathematics, the 'codomain' of a
function ''
'' : ''
'' → ''
'' is the set ''
''.
The ''
domain'' of ''
'' is the set ''
''.
The ''
range'' of ''
'' is the set
defined as {
: ''
'' ∈ ''
'' }.
It follows from these definitions that the range of ''
'' is always a subset of the codomain of ''
''.
Examples
As an example, let the function ''
'' be a function on the
real numbers:
:
defined by
:
The codomain of ''
'' is
, but clearly ''f'' does not map to any negative number. Thus the range of ''f'' is the set
0+,i.e., the
interval [0,∞) where:
: