A function f:RnRf:\mathbb R^n\to\mathbb R is piecewise polynomial if there are finitely many closed S1,,SmS_1,\ldots,S_m covering Rn\mathbb R^n, and polynomials piR[x1,,xn]p_i\in\mathbb R[x_1,\ldots,x_n], such that f(x)=pi(x)f(x)=p_i(x) whenever xSix\in S_i.

Because the sets cover the domain, the local formulas must agree on overlaps. With closed pieces this agreement implies that the resulting function is continuous. Pointwise maxima and minima of finitely many polynomial functions are basic examples.