![cover image](https://wikiwandv2-19431.kxcdn.com/_next/image?url=https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Rectangular_function.svg/640px-Rectangular_function.svg.png&w=640&q=50)
Rectangular function
Function whose graph is 0, then 1, then 0 again, in an almost-everywhere continuous way / From Wikipedia, the free encyclopedia
"Box function" redirects here. For the Conway box function, see Minkowski's question-mark function § Conway box function.
The rectangular function (also known as the rectangle function, rect function, Pi function, Heaviside Pi function,[1] gate function, unit pulse, or the normalized boxcar function) is defined as[2]
![Thumb image](http://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Rectangular_function.svg/640px-Rectangular_function.svg.png)
Alternative definitions of the function define to be 0,[3] 1,[4][5] or undefined.
Its periodic version is called a rectangular wave.