A piecewise function is a function that is defined on a sequence of intervals. A common example is the absolute value, left bracketing bar x right bracketing bar = {-x | for x<0 0 | for x = 0 x | for x>0. auto right match Piecewise functions are implemented in the Wolfram Language as Piecewise[{{val1, cond1}, {val2, cond2}, ...}]. Additional piecewise functions include the Heaviside step function, rectangle function, and triangle function.