結果 : finding range of a piecewise function