The function f(x) takes a numerical input x and returns a value based on the following pattern:
- For inputs in the range [-128, 127], the function outputs 1.
- For an input of 128, the function outputs -1.

