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]
Alternative definitions of the function define to be 0,[3] 1,[4][5] or undefined.