piecewise function

function which is defined by multiple sub-functions each over its own interval