The function takes a numerical input, adds 1 to it, multiplies by 2, and then changes the sign of the result if the input is negative.

