結果 : how to create a piecewise function from a graph