The function f(x) takes a numerical input x and returns x if it is positive, and returns -x if it is negative.

