結果 : how to write a piecewise function as a unit step function