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.
 to be 0, 1, or undefined.
Its periodic version is called a rectangular wave.