Em matemática, a função retangular é a função descontínua rect : R → R {\displaystyle {\hbox{rect}:\mathbb {R} \to \mathbb {R} \,} dada por: