結果 : how to tell if a piecewise function is continuous and differentiable