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. The image of a function of a real variable is a curve in the codomain. In this context, a function that defines curve is called a parametric equation of the curve. When the codomain of a function of a real variable is a finite-dimensional vector space, the function may be viewed as a sequence of real functions. This is often used in applications. Real function A real function is a function from a subset of to where denotes as usual the set of real numbers. That is, the domain of a real function is a subset , and its codomain is It is generally assumed that the domain contains an interval of positive length. Basic examples For many commonly used real functions, the domain is the whole set of real numbers, and the function is continuous and differentiable at every point of the domain. One says that these functions are defined, continuous and differentiable everywhere. This is the case of: All polynomial functions, including constant functions and linear functions Sine and cosine functions Exponential function Some functions are defined everywhere, but not continuous at some points. For example The Heaviside step function is defined everywhere, but not continuous at zero. Some functions are defined and continuous everywhere, but not everywhere differentiable. For example The absolute value is defined