結果 : piecewise function problem and solution