# 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 because $4$ always equals $4$, and $g(x)=\log_{34} e^{\pi-\frac{1}{2}}$ is a constant function since $\log_{34} e^{\pi-\frac{1}{2}}$ is always equal to $\log_{34} e^{\pi-\frac{1}{2}}$. So, basically, a constant function is a function that for whatever input you put in, it always returns the same value, or a constant.