Read · 1 min
Domain and Codomain
When discussing functions, the domain is the set of elements for which a function is defined, and the codomain, also sometimes referred to as the range, is the set of elements that comprise a function's output.
For example, we can say that the domain of the function contains all real numbers - that is, we can plug in any real number and obtain a valid output from the function. The domain of a function can be expressed in several ways. We can write the domain of informally as "all real numbers", or we can also express it as , the set of all numbers that lie between and .
Similarly, we can say that the codomain of the function also contains all real numbers. For every number we plug into the function, we get a real number as an output. We can also express the codomain of as "all real numbers" or .
It is generally assumed that the domain and codomain exclude nonreal numbers, especially when working with the (two-dimensional) Cartesian plane.
Real-Valued Functions
With these definitions for domain and codomain, we can then say a function is real-valued or simply real if its codomain is comprised entirely of real numbers.