The intended operation can also be defined by f(x,y) = max(x,y) - min(x,y).