Rectangular function

The rectangular function (also known as the rectangle function, rect function, Pi function, Heaviside Pi function, gate function, unit pulse, or the normalized boxcar function) is defined as

Alternative definitions of the function define to be 0, 1, or undefined. The area under the curve does not change for the different definitions of the functions at .

The rectangular function can be used as the basis for a rectangular wave.