結果 : smooth piecewise function