The function f(x) implements a negative slope linear operation for inputs within the range of [-2, 2]. Outside of this range, the function returns values that are very close to zero.
