fixed-value function

noun
UK /fɪkst ˈvæljuː ˈfʌŋkʃən/
US /fɪkst ˈvæljuː ˈfʌŋkʃən/

A function that gives the same answer no matter what you put in.

The function that always returns 7 is a fixed-value function.


OTHER MEANINGS

2. A function whose output does not depend on its input.

No matter the input, the fixed-value function returned 42.

3. In programming, a routine that always returns the same predefined result.

The helper was a fixed-value function that always returned true.

4. A mathematical map that sends every element of its domain to a single element.

The fixed-value function maps every real number to zero.