Piecewise Polynomial Function