piecewise function {x+2 if x<0, ABS(x-2) if x>0}