Linear functions with absolute values