In mathematics, a constant function is a function whose output value is the same for every input value. For example, the function is a constant function because the value of    is 4 regardless of the input value (see image).