A piecewise function is definitely not what I'd call "complicated".