A function range in mathematics is a description of the possible values produced by a function.

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

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, and thus the range is in fact the set R+ -- non-negative reals, ie the interval [0,∞):

0 ≤ f(x) < ∞


See also: Function codomain, Function domain, Injective, Surjective, Bijective