The function f(x) takes a real number x as input and returns a value close to 0 when x is negative, and a value close to 1 when x is positive.

