The function f(x) takes a numerical input x and performs the following operations: for positive x, it adds 1 to x; for negative x, it subtracts 1 from x.

