Rectangular function

.svg5221.png)
The rectangular function (also known as the rectangle function, rect function, 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.