# Difference between revisions of "Constant function"

A constant function is a function which has a constant output: the value of the function does not depend on the value of its input. Equivalently, a constant function is a function whose range has only a single value. For example, $f(x)=4$ is a constant function, and so is $g(x)=\log_{34} e^{\pi-\frac{1}{2}}$. So basically, a constant function that whatever input you put in, it always returns the same value.