In mathematical analysis, and applications in geometry, applied mathematics, engineering, and natural sciences, a function of a real variable is a function whose domain is the real numbers
, or a subset of
that contains an interval of positive length. Most real functions that are considered and studied are differentiable in some interval. The most widely considered such functions are the real functions, which are the real-valued functions of a real variable, that is, the functions of a real variable whose codomain is the set of real numbers.
Nevertheless, the codomain of a function of a real variable may be any set. However, it is often assumed to have a structure of
-vector space over the reals. That is, the codomain may be a Euclidean space, a coordinate vector, the set of matrices of real numbers of a given size, or an
-algebra, such as the complex numbers or the quaternions. The structure
-vector space of the codomain induces a structure of
-vector space on the functions. If the codomain has a structure of
-algebra, the same is true for the functions.