結果 : how to write a piecewise function represented by a graph