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).
As a real-valued function of a real-valued argument, a constant function has the general form or just .