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